summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2013-12-17 21:56:48 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2013-12-17 21:56:48 -0500
commit6a25fdf8cca4236a2fc2314902b9f072714632e2 (patch)
tree2bf6b5d9ee84f87e1521f823a153b3908d348a6e
parentc5e6a9b5e53e98fc063a970dc7069559b32e40ce (diff)
downloaddotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.tar.gz
dotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.tar.bz2
dotfiles-6a25fdf8cca4236a2fc2314902b9f072714632e2.zip
Verify symlink removal in unit test
Re: #25
-rwxr-xr-xtest_dotfiles.py4
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()