File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def test_scandir(self):
177
177
]
178
178
with mock .patch .object (self .fs , "scandir" , wraps = self .fs .scandir ) as scandir :
179
179
self .assertEqual (sorted (self .cached .scandir ("/" ), key = key ), expected )
180
- scandir .assert_called ( )
180
+ scandir .assert_has_calls ([ mock . call ( '/' , namespaces = None , page = None )] )
181
181
with mock .patch .object (self .fs , "scandir" , wraps = self .fs .scandir ) as scandir :
182
182
self .assertEqual (sorted (self .cached .scandir ("/" ), key = key ), expected )
183
183
scandir .assert_not_called ()
@@ -187,7 +187,7 @@ def test_isdir(self):
187
187
self .assertTrue (self .cached .isdir ("foo" ))
188
188
self .assertFalse (self .cached .isdir ("egg" )) # is file
189
189
self .assertFalse (self .cached .isdir ("spam" )) # doesn't exist
190
- scandir .assert_called ( )
190
+ scandir .assert_has_calls ([ mock . call ( '/' , namespaces = None , page = None )] )
191
191
with mock .patch .object (self .fs , "scandir" , wraps = self .fs .scandir ) as scandir :
192
192
self .assertTrue (self .cached .isdir ("foo" ))
193
193
self .assertFalse (self .cached .isdir ("egg" ))
You can’t perform that action at this time.
0 commit comments