aboutsummaryrefslogtreecommitdiffstats
path: root/test_dotfiles.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-04 07:30:09 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-04 07:34:44 -0500
commitce3e697f8da61afd5a8fab377983d69abb20a5dd (patch)
treef06054d483401f1d148e046e17f04d16c84f6134 /test_dotfiles.py
parentffb94ce64947566db7e1d1a144ebf63a450bf25e (diff)
downloaddotfiles-ce3e697f8da61afd5a8fab377983d69abb20a5dd.tar.gz
dotfiles-ce3e697f8da61afd5a8fab377983d69abb20a5dd.tar.bz2
dotfiles-ce3e697f8da61afd5a8fab377983d69abb20a5dd.zip
Add test for repository expected name
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r--test_dotfiles.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py
index ed67884..7f8c4cd 100644
--- a/test_dotfiles.py
+++ b/test_dotfiles.py
@@ -65,9 +65,10 @@ class TestRepository(object):
assert contents[1].target == target_b
assert contents[2].target == target_c
- @pytest.mark.xfail(reason='not implemented yet')
- def test_expected_name(self):
- assert False
+ def test_expected_name(self, repo, home):
+ actual = Repository(repo, home).expected_name(repo.join('foo'))
+ expected = home.join('.foo')
+ assert actual == expected
class TestDotfile(object):