comparison tests/test_single_dir_clone.py @ 577:930bb6df19a0

tests: make sure single dir clone tests get run by non-nose users
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 26 Feb 2010 14:52:50 +0100
parents cf4fe45bf8fd
children d2ef7220a079
comparison
equal deleted inserted replaced
576:d96aa92d9ad9 577:930bb6df19a0
1 import errno 1 import errno
2 import shutil 2 import shutil
3 import unittest
3 4
4 from mercurial import commands 5 from mercurial import commands
5 from mercurial import context 6 from mercurial import context
6 from mercurial import hg 7 from mercurial import hg
7 from mercurial import node 8 from mercurial import node
178 self.repo.branchheads('default')[1], 179 self.repo.branchheads('default')[1],
179 clean=True) 180 clean=True)
180 self.pushrevisions() 181 self.pushrevisions()
181 self.assertTrue('default' in self.svnls('')) 182 self.assertTrue('default' in self.svnls(''))
182 self.assertEquals(len(self.repo.branchheads('default')), 1) 183 self.assertEquals(len(self.repo.branchheads('default')), 1)
184
185 def suite():
186 all = [unittest.TestLoader().loadTestsFromTestCase(TestSingleDir)]
187 return unittest.TestSuite(all)