diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-15 16:07:24 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-15 16:07:24 -0500 |
commit | 1bdceb351b50b805262978bc6cb2e0e0dbcdb089 (patch) | |
tree | 7d13e60bccbf6d633df7fc2b6992c76491501d1c /test_dotfiles.py | |
parent | 339e48e3eab7b04cf5116d8f036847612de3ee9a (diff) | |
download | dotfiles-1bdceb351b50b805262978bc6cb2e0e0dbcdb089.tar.gz dotfiles-1bdceb351b50b805262978bc6cb2e0e0dbcdb089.tar.bz2 dotfiles-1bdceb351b50b805262978bc6cb2e0e0dbcdb089.zip |
Improve custom exceptions
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r-- | test_dotfiles.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py index caff325..7cfb276 100644 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -1,6 +1,7 @@ import pytest from dotfiles import Repository, Dotfile, cli +from dotfiles import IsSymlink class TestCli(object): @@ -116,8 +117,7 @@ class TestDotfile(object): assert name.samefile(target) for x in range(2, times): - with pytest.raises(OSError): - # TODO: verify exception type once those exists + with pytest.raises(IsSymlink): Dotfile(name, target).add() assert target.check(file=1, link=0) assert name.check(file=1, link=1) |