def test_top_here(self): assert_swap_compare( True, DATA_PATH, 'a-fs-top-here', 'b-fs-top-here-inside-less+changed-entries', )
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', )
def test_file_nonexists(self): assert_swap_compare(False, DATA_PATH, 'a', 'b-file-nonexist', 1, traversal_only=True)
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, )
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, )
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, )
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, )
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, )
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, )
def test_same(self): assert_swap_compare(True, DATA_PATH, 'a', 'b')
def test_dir_missing_abssymlink(self): assert_swap_compare(True, DATA_PATH, 'a-dir-abssymlink', 'b-dir-abssymlink')
def test_dir_file_diff(self): assert_swap_compare(True, DATA_PATH, 'a', 'b-file-diff', traversal_only=True)
def test_file_nonexists(self): assert_swap_compare(False, DATA_PATH, 'a', 'b-file-nonexist', 1)
def test_file_not_symlink(self): assert_swap_compare(False, DATA_PATH, 'a-file-symlink', 'b-file-not-symlink', 1)
def test_noaccess_file_changed(self): assert_swap_compare(False, DATA_PATH, 'a-dir+file-noaccess', 'b-dir+file-noaccess-file-changed', 1)
def test_same(self): assert_swap_compare(True, DATA_PATH, 'a-dir+file-noaccess', 'b-dir+file-noaccess')
def test_dir_missing_other_abssymlink(self): assert_swap_compare(False, DATA_PATH, 'a-dir-abssymlink', 'b-dir-other-abssymlink', 1)
def test_dir_file_diff(self): assert_swap_compare(False, DATA_PATH, 'a', 'b-file-diff', 1)
def test_dir_other_symlink(self): assert_swap_compare(False, DATA_PATH, 'a-dir-symlink', 'b-dir-other-symlink', 1)
def test_dir_nonexists(self): assert_swap_compare(False, DATA_PATH, 'a', 'b-dir-nonexist', 1)
def test_file_symlink_same(self): assert_swap_compare(True, DATA_PATH, 'a-file-symlink', 'b-file-symlink')
def test_same(self): assert_swap_compare(True, DATA_PATH, 'a', 'b', traversal_only=True)
def test_added_DSstores(self): assert_swap_compare(False, DATA_PATH, 'a-fs-top-here', 'b-fs-top-here-added-DSstores', 3)
def test_dir_symlink_same(self): assert_swap_compare(True, DATA_PATH, 'a-dir-symlink', 'b-dir-symlink')
def test_file_missing_symlink(self): assert_swap_compare(False, DATA_PATH, 'a-file-symlink', 'b-file-missing-symlink', 1)