diff options
Diffstat (limited to 'tests/test_basic.py')
-rw-r--r-- | tests/test_basic.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_basic.py b/tests/test_basic.py index 471e383..1c3a77a 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -37,6 +37,25 @@ class DotfilesTestCase(unittest.TestCase): os.path.realpath(path1), os.path.realpath(path2)) + def test_sync(self): + """Basic sync operation.""" + + touch(os.path.join(self.repository, 'foo')) + + dotfiles = Dotfiles(homedir=self.homedir, + path=self.repository, + prefix='', + ignore=[], + externals={}, + packages=[], + dry_run=False) + + dotfiles.sync() + + self.assertPathEqual( + os.path.join(self.homedir, '.foo'), + os.path.join(self.repository, 'foo')) + def test_force_sync_directory(self): """Test forced sync when the dotfile is a directory. |