class BaseStorageBackendTestCase(unittest.TestCase): def setUp(self): self.backend = BaseStorageBackend() def test_path(self): self.assertEqual(self.backend.path('/an/absolute/path'), '/an/absolute/path') self.backend.location = 'location' self.assertEqual(self.backend.path('relative/path'), 'location/relative/path')
def setUp(self): self.backend = BaseStorageBackend()