def test_raises_if_dir_marker(self): with self.assertRaises(AssertionError): get_cloudstorage_bucket('/packages')
def test_prepends_dir_marker(self): self.assertEquals(get_cloudstorage_bucket('packages'), '/packages')