# HG changeset patch # User Pulkit Goyal # Date 1532609784 -10800 # Node ID 68965b2e3401563b8a06c3ddc947c1d888090245 # Parent af9a3156f8aec38b80a85ade40b68b27790940d2 tests: use repo['.'] instead of repo to check whether file exists diff --git a/tests/test_fetch_command.py b/tests/test_fetch_command.py --- a/tests/test_fetch_command.py +++ b/tests/test_fetch_command.py @@ -87,8 +87,8 @@ class TestBasicRepoLayout(test_util.Test repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') self.assertEqual(node.hex(revsymbol(repo, 'default').node()), '434ed487136c1b47c1e8f952edb4dc5a8e6328df') - assert 'README' not in repo - assert '../branches' not in repo + assert 'README' not in repo['.'] + assert '../branches' not in repo['.'] def test_files_copied_from_outside_btt(self): repo = self._load_fixture_and_fetch(