Пример #1
0
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')
Пример #2
0
 def setUp(self):
     self.backend = BaseStorageBackend()