|
@@ -374,6 +374,12 @@ class DiskObjectStoreTests(PackBasedObjectStoreTests, TestCase):
|
|
|
self.assertIn(os.path.join(store.path, "relative-path"),
|
|
|
set(store._read_alternate_paths()))
|
|
|
|
|
|
+ # arguably, add_alternate_path() could strip comments.
|
|
|
+ # Meanwhile it's more convenient to use it than to import INFODIR
|
|
|
+ store.add_alternate_path("# comment")
|
|
|
+ for alt_path in store._read_alternate_paths():
|
|
|
+ self.assertNotIn("#", alt_path)
|
|
|
+
|
|
|
def test_corrupted_object_raise_exception(self):
|
|
|
"""Corrupted sha1 disk file should raise specific exception"""
|
|
|
self.store.add_object(testobject)
|