comparison tests/test_utility_commands.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 04800fda7af5
children 91541523ea5c
comparison
equal deleted inserted replaced
152:1fde85a10f9e 153:46f6b872c988
1 import os 1 import os
2 import unittest
2 import urllib # for url quoting 3 import urllib # for url quoting
3 4
4 from mercurial import ui 5 from mercurial import ui
5 from mercurial import hg 6 from mercurial import hg
6 from mercurial import revlog 7 from mercurial import revlog
89 hg.update(self.repo, 'tip') 90 hg.update(self.repo, 'tip')
90 u = ui.ui() 91 u = ui.ui()
91 utility_commands.print_wc_url(u, self.repo, self.wc_path) 92 utility_commands.print_wc_url(u, self.repo, self.wc_path)
92 expected = 'file://%s\n' % urllib.quote(self.repo_path) 93 expected = 'file://%s\n' % urllib.quote(self.repo_path)
93 self.assertEqual(u.stream.getvalue(), expected) 94 self.assertEqual(u.stream.getvalue(), expected)
95
96
97 def suite():
98 all = [unittest.TestLoader().loadTestsFromTestCase(UtilityTests),
99 ]
100 return unittest.TestSuite(all)