mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Fix get_free_space test
This commit is contained in:
parent
a8c79d1954
commit
2731d5be17
@ -96,7 +96,7 @@ class CoreTestCase(unittest.TestCase):
|
||||
|
||||
def test_get_free_space(self):
|
||||
space = self.core.get_free_space(".")
|
||||
self.assertTrue(type(space) == int)
|
||||
self.assertTrue(type(space) in (int, long))
|
||||
self.assertTrue(space >= 0)
|
||||
self.assertRaises(deluge.error.InvalidPathError, self.core.get_free_space, "/someinvalidpath")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user