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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.libnetworkcache
Commits
86578896
Commit
86578896
authored
Aug 22, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover selection case.
parent
61c32e6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
slapos/libnetworkcachetests.py
slapos/libnetworkcachetests.py
+8
-0
No files found.
slapos/libnetworkcachetests.py
View file @
86578896
...
@@ -47,6 +47,14 @@ class OnlineTest(unittest.TestCase):
...
@@ -47,6 +47,14 @@ class OnlineTest(unittest.TestCase):
urlmd5
=
str
(
random
.
random
())
urlmd5
=
str
(
random
.
random
())
nc
.
upload
(
self
.
test_data
,
urlmd5
,
file_name
=
'my file'
)
nc
.
upload
(
self
.
test_data
,
urlmd5
,
file_name
=
'my file'
)
def
test_upload_shadir_select
(
self
):
"""Check scenario with shadir used"""
nc
=
NetworkcacheClient
(
self
.
shacache
,
self
.
shadir
)
urlmd5
=
str
(
random
.
random
())
nc
.
upload
(
self
.
test_data
,
urlmd5
,
file_name
=
'my file'
)
result
=
nc
.
select
(
urlmd5
)
self
.
assertEqual
(
result
.
read
(),
self
.
test_string
)
def
test_upload_shadir_no_filename
(
self
):
def
test_upload_shadir_no_filename
(
self
):
"""Check scenario with shadir used, but not filename passed"""
"""Check scenario with shadir used, but not filename passed"""
nc
=
NetworkcacheClient
(
self
.
shacache
,
self
.
shadir
)
nc
=
NetworkcacheClient
(
self
.
shacache
,
self
.
shadir
)
...
...
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