terrasync.py: improve code readability
This commit is contained in:
parent
692ab6835f
commit
8009f46a51
1 changed files with 13 additions and 12 deletions
|
@ -75,7 +75,7 @@ class TestDirIndex(unittest.TestCase):
|
|||
self.assertEqual(d.files, files_in_sample_dirindex_1)
|
||||
self.assertEqual(d.tarballs, tarballs_in_sample_dirindex_1)
|
||||
|
||||
for stem in ("path_starts_with_slash",
|
||||
stems = ("path_starts_with_slash",
|
||||
"path_contains_a_backslash",
|
||||
"dotdot_in_path",
|
||||
"slash_in_directory_name",
|
||||
|
@ -86,7 +86,8 @@ class TestDirIndex(unittest.TestCase):
|
|||
"backslash_in_tarball_name",
|
||||
"directory_name_is_double_colon",
|
||||
"file_name_is_double_colon",
|
||||
"tarball_name_is_double_colon"):
|
||||
"tarball_name_is_double_colon",)
|
||||
for stem in stems:
|
||||
with self.assertRaises(InvalidDirIndexFile):
|
||||
DirIndex(testData("bad", "bad_dirindex_" + stem))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue