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