コード例 #1
0
 def test_top_here(self):
     assert_swap_compare(
         True,
         DATA_PATH,
         'a-fs-top-here',
         'b-fs-top-here-inside-less+changed-entries',
     )
コード例 #2
0
 def test_spaced_mobdoc_and_alias(self):
     assert_swap_compare(
         True,
         DATA_PATH,
         'a-with-spaced-mobdoc-and-alias',
         'b-with-spaced-mobdoc-no-alias',
     )
コード例 #3
0
 def test_file_nonexists(self):
     assert_swap_compare(False,
                         DATA_PATH,
                         'a',
                         'b-file-nonexist',
                         1,
                         traversal_only=True)
コード例 #4
0
 def test_rel_top_relative_allowed(self):
     assert_swap_compare(
         True,
         DATA_PATH,
         'a-rel-fs-top',
         'b-rel-fs-top-inside-less+changed-entries',
         relative_fs_top=True,
     )
コード例 #5
0
 def test_spaced_mobdoc_and_alias(self):
     assert_swap_compare(
         False,
         DATA_PATH,
         'a-with-spaced-mobdoc-and-alias',
         'b-with-spaced-mobdoc-no-alias',
         1,
         clear_std_exclusions=True,
     )
コード例 #6
0
 def test_rel_top(self):
     # Should give error with default settings
     assert_swap_compare(
         False,
         DATA_PATH,
         'a-rel-fs-top',
         'b-rel-fs-top-inside-less+changed-entries',
         2,
     )
コード例 #7
0
 def test_added_DSstores(self):
     # Should be one Not exist error more than with std exclusions
     assert_swap_compare(
         True,
         DATA_PATH,
         'a-fs-top-here',
         'b-fs-top-here-added-DSstores',
         live_fs_exclusions=True,
     )
コード例 #8
0
 def test_rel_top(self):
     # Should give the same number of error as top_here
     assert_swap_compare(
         False,
         DATA_PATH,
         'a-rel-fs-top',
         'b-rel-fs-top-inside-less+changed-entries',
         self.ERRORS_IN_FS,
         clear_std_exclusions=True,
     )
コード例 #9
0
 def test_top_here(self):
     # Should give error, because changes are not excluded
     assert_swap_compare(
         False,
         DATA_PATH,
         'a-fs-top-here',
         'b-fs-top-here-inside-less+changed-entries',
         self.ERRORS_IN_FS,
         clear_std_exclusions=True,
     )
コード例 #10
0
 def test_same(self):
     assert_swap_compare(True, DATA_PATH, 'a', 'b')
コード例 #11
0
 def test_dir_missing_abssymlink(self):
     assert_swap_compare(True, DATA_PATH, 'a-dir-abssymlink',
                         'b-dir-abssymlink')
コード例 #12
0
 def test_dir_file_diff(self):
     assert_swap_compare(True,
                         DATA_PATH,
                         'a',
                         'b-file-diff',
                         traversal_only=True)
コード例 #13
0
 def test_file_nonexists(self):
     assert_swap_compare(False, DATA_PATH, 'a', 'b-file-nonexist', 1)
コード例 #14
0
 def test_file_not_symlink(self):
     assert_swap_compare(False, DATA_PATH, 'a-file-symlink',
                         'b-file-not-symlink', 1)
コード例 #15
0
 def test_noaccess_file_changed(self):
     assert_swap_compare(False, DATA_PATH, 'a-dir+file-noaccess',
                         'b-dir+file-noaccess-file-changed', 1)
コード例 #16
0
 def test_same(self):
     assert_swap_compare(True, DATA_PATH, 'a-dir+file-noaccess',
                         'b-dir+file-noaccess')
コード例 #17
0
 def test_dir_missing_other_abssymlink(self):
     assert_swap_compare(False, DATA_PATH, 'a-dir-abssymlink',
                         'b-dir-other-abssymlink', 1)
コード例 #18
0
 def test_dir_file_diff(self):
     assert_swap_compare(False, DATA_PATH, 'a', 'b-file-diff', 1)
コード例 #19
0
 def test_dir_other_symlink(self):
     assert_swap_compare(False, DATA_PATH, 'a-dir-symlink',
                         'b-dir-other-symlink', 1)
コード例 #20
0
 def test_dir_nonexists(self):
     assert_swap_compare(False, DATA_PATH, 'a', 'b-dir-nonexist', 1)
コード例 #21
0
 def test_file_symlink_same(self):
     assert_swap_compare(True, DATA_PATH, 'a-file-symlink',
                         'b-file-symlink')
コード例 #22
0
 def test_same(self):
     assert_swap_compare(True, DATA_PATH, 'a', 'b', traversal_only=True)
コード例 #23
0
 def test_added_DSstores(self):
     assert_swap_compare(False, DATA_PATH, 'a-fs-top-here',
                         'b-fs-top-here-added-DSstores', 3)
コード例 #24
0
 def test_dir_symlink_same(self):
     assert_swap_compare(True, DATA_PATH, 'a-dir-symlink', 'b-dir-symlink')
コード例 #25
0
 def test_file_missing_symlink(self):
     assert_swap_compare(False, DATA_PATH, 'a-file-symlink',
                         'b-file-missing-symlink', 1)