diff tests/test_fetch_command.py @ 40:9952f03ddfbe

Add a test that proves files in the branches directory don't cause breakage.
author Augie Fackler <durin42@gmail.com>
date Sun, 26 Oct 2008 22:12:46 -0500
parents 99f8e4b535e9
children 496c0354019c
line wrap: on
line diff
--- a/tests/test_fetch_command.py
+++ b/tests/test_fetch_command.py
@@ -91,6 +91,12 @@ class TestBasicRepoLayout(unittest.TestC
         self.assertEqual(repo['tip'], repo['default'])
         self.assertEqual(len(repo.heads()), 2)
 
+    def test_file_mixed_with_branches(self):
+        repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump')
+        self.assertEqual(node.hex(repo['tip'].node()),
+                         'a47d0ce778660a91c31bf2c21c448e9ee296ac90')
+        assert 'README' not in repo
+
 
 class TestStupidPull(unittest.TestCase):
     def setUp(self):