Alex Willmer
81a77a453a
Use specific TestCase assertions throughout tests
...
e.g. assert x == y -> self.assertEqual(x, y);
self.assertTrue(isinstance(x, y)) -> self.assertIsInstance(x, y)
These specific methods give more useful errors in the case of a test
failure.
2017-11-11 23:08:08 +00:00
Alex Willmer
9351a44784
Use unittest2 in all tests
...
This allows using features such as TestCase,assertIsInstance on Python
2.6 and earlier.
2017-11-11 22:59:38 +00:00
David Wilson
fccf1b1cab
Fix importer_test constructor signature.
2017-10-01 15:30:43 +05:30
David Wilson
0db472c97b
Fix up importer_test.
2017-09-25 05:20:50 +05:30
David Wilson
10c0dca24c
Apply package rename to tests
2017-09-16 12:45:25 +05:30
David Wilson
ba85638c78
Module __file__ fixes.
2016-08-26 19:38:15 +01:00
David Wilson
481ae1a933
Implement Importer.get_filename() and Importer.get_source()
...
Optional importer protocols required for Python to display annotated
tracebacks.
2016-08-18 17:12:43 +01:00
David Wilson
9e68408597
Draft importer tests.
2016-08-17 14:24:26 +01:00