diff options
author | Jon Bernard <jbernard@tuxion.com> | 2013-12-17 21:56:48 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2013-12-17 21:56:48 -0500 |
commit | 6a25fdf8cca4236a2fc2314902b9f072714632e2 (patch) | |
tree | 2bf6b5d9ee84f87e1521f823a153b3908d348a6e /test_dotfiles.py | |
parent | c5e6a9b5e53e98fc063a970dc7069559b32e40ce (diff) | |
download | dotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.tar.gz dotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.tar.bz2 dotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.zip |
Verify symlink removal in unit test
Re: #25
Diffstat (limited to 'test_dotfiles.py')
-rwxr-xr-x | test_dotfiles.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py index 7d2605e..678d9e4 100755 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -330,6 +330,10 @@ class DotfilesTestCase(unittest.TestCase): # remove the broken symlink dotfiles.remove(['.testdotfile']) + # verify symlink was removed + self.assertFalse(os.path.exists( + os.path.join(self.homedir, '.testdotfile'))) + if __name__ == '__main__': unittest.main() |