From ce3e697f8da61afd5a8fab377983d69abb20a5dd Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 4 Jan 2016 07:30:09 -0500 Subject: Add test for repository expected name --- test_dotfiles.py | 7 ++++--- 1 file 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): -- cgit v1.2.3