Alex Willmer
ba3bc0f7f1
core: Standardise type of Importer.whitelist
...
This seemed a reasonable streamlining, but I'm happy to be overruled.
7 years ago
Alex Willmer
621f2533f7
tests: Add mitogen.core.is_blacklisted_import() tests
...
These test the current behviour, which may not be exactly the intended
behaviour. Refs #98
7 years ago
Alex Willmer
83c0111b51
Fix TypeError while initiliazing ImporterMixin
...
Since f44356af32
mitogen.core.Importer()
takes a Router instance.
7 years ago
Alex Willmer
110eba05ce
Import and use unittest2 without aliasing it
7 years ago
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.
7 years ago
Alex Willmer
9351a44784
Use unittest2 in all tests
...
This allows using features such as TestCase,assertIsInstance on Python
2.6 and earlier.
7 years ago
David Wilson
fccf1b1cab
Fix importer_test constructor signature.
7 years ago
David Wilson
0db472c97b
Fix up importer_test.
7 years ago
David Wilson
10c0dca24c
Apply package rename to tests
7 years ago
David Wilson
ba85638c78
Module __file__ fixes.
8 years ago
David Wilson
481ae1a933
Implement Importer.get_filename() and Importer.get_source()
...
Optional importer protocols required for Python to display annotated
tracebacks.
8 years ago
David Wilson
9e68408597
Draft importer tests.
8 years ago