File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ Methods
58
58
... ' end' : ' /end/path/' ,
59
59
... ' prefix' : ' object-prefix' ,
60
60
... ' slash' : ' both' ,
61
- ... ' encoding' : ' utf8 '
61
+ ... ' encoding' : ' utf-8 '
62
62
... }
63
63
>> > ns.dir(NETSTORAGE_PATH , dir_option)
64
64
>> > ns.download(NETSTORAGE_SOURCE , LOCAL_DESTINATION )
65
65
>> > ns.du(NETSTORAGE_PATH )
66
66
>> > list_option = {
67
67
... ' max_entries' : INTEGER ,
68
68
... ' end' : ' /end/path/' ,
69
- ... ' encoding' : ' utf8 '
69
+ ... ' encoding' : ' utf-8 '
70
70
... }
71
71
>> > ns.list(NETSTORAGE_PATH , list_option)
72
72
>> > ns.mkdir(NETSTORAGE_PATH + DIRECTORY_NAME )
Original file line number Diff line number Diff line change @@ -105,6 +105,16 @@ def test_netstorage(self):
105
105
self .assertEqual (stream_upload_text , res .text , "stream download fail" )
106
106
print ("[TEST] stream_download {0} done" .format (self .temp_ns_stream_file ))
107
107
108
+ # list
109
+ ok , _ = self .ns .list ("/" + self .cpcode_path , {
110
+ 'max_entries' : 1 ,
111
+ 'end' : self .temp_ns_dir ,
112
+ 'encoding' : 'utf-8'
113
+ }
114
+ )
115
+ self .assertEqual (True , ok , "dir fail." )
116
+ print ("[TEST] dir {0} done" .format ("/" + self .cpcode_path ))
117
+
108
118
# du
109
119
ok , res = self .ns .du (self .temp_ns_dir )
110
120
self .assertEqual (True , ok )
You can’t perform that action at this time.
0 commit comments