comparison tests/test_fetch_mappings.py @ 833:312b37bc5e20

tests: avoid shadowing Python builtin all()
author Yonggang Luo <luoyonggang@gmail.com>
date Wed, 12 Oct 2011 15:43:31 +0800
parents 033b86e0f56d
children 0de18c5c2e35
comparison
equal deleted inserted replaced
832:e9af7eba88db 833:312b37bc5e20
94 new.write(open(orig).read()) 94 new.write(open(orig).read())
95 new.close() 95 new.close()
96 test = maps.AuthorMap(self.ui(), self.authors) 96 test = maps.AuthorMap(self.ui(), self.authors)
97 fromself = set(test) 97 fromself = set(test)
98 test.load(orig) 98 test.load(orig)
99 all = set(test) 99 all_tests = set(test)
100 self.assertEqual(fromself.symmetric_difference(all), set()) 100 self.assertEqual(fromself.symmetric_difference(all_tests), set())
101 101
102 def test_file_map(self, stupid=False): 102 def test_file_map(self, stupid=False):
103 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump') 103 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump')
104 filemap = open(self.filemap, 'w') 104 filemap = open(self.filemap, 'w')
105 filemap.write("include alpha\n") 105 filemap.write("include alpha\n")