comparison tests/test_rebuildmeta.py @ 832:e9af7eba88db

globally: clean up whitespace around operators and commas to conform with PEP8 Mostly autoformatted by Eclipse. A few manual corrections were performed where Eclipse's autoformatter did something non-idiomatic.
author Yonggang Luo <luoyonggang@gmail.com>
date Wed, 12 Oct 2011 15:35:25 +0800
parents f28e0f54a6ef
children 312b37bc5e20
comparison
equal deleted inserted replaced
831:be5bbb2f2d68 832:e9af7eba88db
53 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 53 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),
54 'no .hg/svn directory in the source!') 54 'no .hg/svn directory in the source!')
55 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 55 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),
56 'no .hg/svn directory in the destination!') 56 'no .hg/svn directory in the destination!')
57 dest = hg.repository(u, os.path.dirname(dest.path)) 57 dest = hg.repository(u, os.path.dirname(dest.path))
58 for tf in ('lastpulled', 'rev_map', 'uuid', 'tagmap', 'layout', 'subdir', ): 58 for tf in ('lastpulled', 'rev_map', 'uuid', 'tagmap', 'layout', 'subdir',):
59 59
60 stf = os.path.join(src.path, 'svn', tf) 60 stf = os.path.join(src.path, 'svn', tf)
61 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf) 61 self.assertTrue(os.path.isfile(stf), '%r is missing!' % stf)
62 dtf = os.path.join(dest.path, 'svn', tf) 62 dtf = os.path.join(dest.path, 'svn', tf)
63 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) 63 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf)
111 name = bname + '_stupid' 111 name = bname + '_stupid'
112 attrs[name] = buildmethod(case, name, True, False) 112 attrs[name] = buildmethod(case, name, True, False)
113 name = bname + '_single' 113 name = bname + '_single'
114 attrs[name] = buildmethod(case, name, False, True) 114 attrs[name] = buildmethod(case, name, False, True)
115 115
116 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase, ), attrs) 116 RebuildMetaTests = type('RebuildMetaTests', (test_util.TestBase,), attrs)
117 117
118 118
119 def suite(): 119 def suite():
120 all = [unittest.TestLoader().loadTestsFromTestCase(RebuildMetaTests), 120 all = [unittest.TestLoader().loadTestsFromTestCase(RebuildMetaTests),
121 ] 121 ]