comparison tests/test_fetch_symlinks.py @ 901:bd12a4da0f35

replay: workaround svn not telling us about x/l flags (issue346)
author Bryan O'Sullivan <bryano@fb.com>
date Sun, 13 May 2012 15:28:50 +0200
parents 04729f3a3d17
children d741f536f23a
comparison
equal deleted inserted replaced
900:abd8f2f2c58a 901:bd12a4da0f35
48 self.assertTrue(f in ctx) 48 self.assertTrue(f in ctx)
49 49
50 def test_symlinks_stupid(self): 50 def test_symlinks_stupid(self):
51 self.test_symlinks(True) 51 self.test_symlinks(True)
52 52
53 class TestMergeSpecial(test_util.TestBase):
54 def test_special(self):
55 repo = self._load_fixture_and_fetch('addspecial.svndump',
56 subdir='trunk')
57 ctx = repo['tip']
58 self.assertEqual(ctx['fnord'].flags(), 'l')
59 self.assertEqual(ctx['exe'].flags(), 'x')
60
53 def suite(): 61 def suite():
54 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestFetchSymlinks), 62 all_tests = [
55 ] 63 unittest.TestLoader().loadTestsFromTestCase(TestFetchSymlinks),
64 unittest.TestLoader().loadTestsFromTestCase(TestMergeSpecial),
65 ]
56 return unittest.TestSuite(all_tests) 66 return unittest.TestSuite(all_tests)