286
290
def test__relpath_simple_suffixed(self):
287
291
my_store = store.TransportStore(MockTransport())
288
292
self.assertEqual('foo.gz', my_store._relpath('foo', ['gz']))
293
self.assertEqual('foo.gz.bar', my_store._relpath('foo', ['gz', 'bar']))
290
295
def test__relpath_prefixed_suffixed(self):
291
296
my_store = store.TransportStore(MockTransport(), True)
292
297
self.assertEqual('45/foo.gz', my_store._relpath('foo', ['gz']))
294
301
def test_add_simple(self):
295
302
stream = StringIO("content")