Mercurial > hgsubversion
comparison tests/test_diff.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 | 95abc4cfc78f |
children | 312b37bc5e20 |
comparison
equal
deleted
inserted
replaced
831:be5bbb2f2d68 | 832:e9af7eba88db |
---|---|
31 self.commitchanges([('foo', 'foo', 'This is missing a newline.'), | 31 self.commitchanges([('foo', 'foo', 'This is missing a newline.'), |
32 ('alpha', 'alpha', 'alpha\n\nadded line\n'), | 32 ('alpha', 'alpha', 'alpha\n\nadded line\n'), |
33 ]) | 33 ]) |
34 u = ui.ui() | 34 u = ui.ui() |
35 u.pushbuffer() | 35 u.pushbuffer() |
36 wrappers.diff(lambda x,y,z: None, u, self.repo, svn=True) | 36 wrappers.diff(lambda x, y, z: None, u, self.repo, svn=True) |
37 self.assertEqual(u.popbuffer(), expected_diff_output) | 37 self.assertEqual(u.popbuffer(), expected_diff_output) |
38 | 38 |
39 | 39 |
40 def suite(): | 40 def suite(): |
41 all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests), | 41 all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests), |