Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.libnetworkcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.libnetworkcache
Commits
57c20a15
Commit
57c20a15
authored
Aug 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert backward compatibility to real test.
parent
0e8d17e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
slapos/libnetworkcachetests.py
slapos/libnetworkcachetests.py
+7
-1
No files found.
slapos/libnetworkcachetests.py
View file @
57c20a15
...
...
@@ -98,10 +98,16 @@ class TestNetworkcacheClient(LibNetworkCacheMixin):
url
=
'http://%s:%s'
%
(
self
.
host
,
self
.
port
)
self
.
shacache_url
=
url
+
self
.
shacache_path
self
.
shadir_url
=
url
+
self
.
shadir_path
# checking the backwards compatibilty
self
.
nc
=
NetworkcacheClient
(
shacache
=
self
.
shacache_url
,
shadir
=
self
.
shadir_url
)
def
test_init_backward_compatible
(
self
):
"""Checks that invocation with minimal parameter works fine"""
nc
=
NetworkcacheClient
(
shacache
=
self
.
shacache_url
,
shadir
=
self
.
shadir_url
)
self
.
assertEqual
(
nc
.
shacache_url
,
self
.
shacache_url
)
self
.
assertTrue
(
nc
.
shadir_host
in
self
.
shadir_url
)
def
test_init_method_normal_http_url
(
self
):
"""
Check if the init method is setting the attributes correctly.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment