comparison tests/test_diff.py @ 153:46f6b872c988

tests: Fix some missing suite definitions so that running the full testsuite does not require installing nose.
author Augie Fackler <durin42@gmail.com>
date Tue, 23 Dec 2008 17:45:34 -0600
parents 40474f6c1f84
children 28d0ee605308
comparison
equal deleted inserted replaced
152:1fde85a10f9e 153:46f6b872c988
1 import unittest
2
1 from mercurial import ui 3 from mercurial import ui
2 4
3 import diff_cmd 5 import diff_cmd
4 6
5 import test_util 7 import test_util
30 ('alpha', 'alpha', 'alpha\n\nadded line\n'), 32 ('alpha', 'alpha', 'alpha\n\nadded line\n'),
31 ]) 33 ])
32 u = ui.ui() 34 u = ui.ui()
33 diff_cmd.diff_command(u, self.repo, self.wc_path) 35 diff_cmd.diff_command(u, self.repo, self.wc_path)
34 self.assertEqual(u.stream.getvalue(), expected_diff_output) 36 self.assertEqual(u.stream.getvalue(), expected_diff_output)
37
38
39 def suite():
40 all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests),
41 ]
42 return unittest.TestSuite(all)