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