Mercurial > hgsubversion
comparison tests/test_helpers.py @ 1044:d741f536f23a
tests: remove old test-loading infrastructure
(for those in the know, this is known as a suitectomy)
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 07 Aug 2013 16:00:52 +0200 |
parents | bfbfc9be3faa |
children | 8d8fc10d0d0a |
comparison
equal
deleted
inserted
replaced
1043:69a9fb45cad5 | 1044:d741f536f23a |
---|---|
28 fs.setfile('bb', 'bb') | 28 fs.setfile('bb', 'bb') |
29 self.assertEqual(1, len(os.listdir(fs._tempdir))) | 29 self.assertEqual(1, len(os.listdir(fs._tempdir))) |
30 fs.popfile('bb') | 30 fs.popfile('bb') |
31 self.assertEqual([], os.listdir(fs._tempdir)) | 31 self.assertEqual([], os.listdir(fs._tempdir)) |
32 self.assertRaises(editor.EditingError, lambda: fs.getfile('bb')) | 32 self.assertRaises(editor.EditingError, lambda: fs.getfile('bb')) |
33 | |
34 def suite(): | |
35 return unittest.TestSuite([ | |
36 unittest.TestLoader().loadTestsFromTestCase(TestHelpers), | |
37 ]) |