Exemple #1
0
 def test_set_options(self, *args):
     storage = get_storage(options=STORAGE_OPTIONS)
     self.assertEqual(storage.__module__, DEFAULT_STORAGE_PATH)
Exemple #2
0
 def test_set_path(self):
     storage = get_storage(path=FakeStorage.__module__)
     self.assertIsInstance(storage, FakeStorage)
Exemple #3
0
 def test_func(self, *args):
     storage = get_storage()
     self.assertEqual(storage.__module__, DEFAULT_STORAGE_PATH)
Exemple #4
0
 def test_set_options(self, *args):
     storage = get_storage(options=STORAGE_OPTIONS)
     self.assertEqual(storage.__module__, DEFAULT_STORAGE_PATH)
Exemple #5
0
 def test_set_path(self):
     storage = get_storage(path=FakeStorage.__module__)
     self.assertIsInstance(storage, FakeStorage)
Exemple #6
0
 def test_func(self, *args):
     storage = get_storage()
     self.assertEqual(storage.__module__, DEFAULT_STORAGE_PATH)