From 6a25fdf8cca4236a2fc2314902b9f072714632e2 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Tue, 17 Dec 2013 21:56:48 -0500 Subject: Verify symlink removal in unit test Re: #25 --- test_dotfiles.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test_dotfiles.py') 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() -- cgit v1.2.3