(self)
| 693 | |
| 694 | @pytest.mark.slow_test |
| 695 | def test_reload(self): |
| 696 | # ensure it doesn't exist |
| 697 | self.assertNotIn(self.module_key, self.loader) |
| 698 | |
| 699 | # make sure it updates correctly |
| 700 | for x in range(1, 3): |
| 701 | self.update_module() |
| 702 | self.loader.clear() |
| 703 | self.assertEqual(self.loader[self.module_key](), self.count) |
| 704 | |
| 705 | self.rm_module() |
| 706 | # make sure that even if we remove the module, its still loaded until a clear |
| 707 | self.assertEqual(self.loader[self.module_key](), self.count) |
| 708 | self.loader.clear() |
| 709 | self.assertNotIn(self.module_key, self.loader) |
| 710 | |
| 711 | def test_wrong_bytecode(self): |
| 712 | """ |
nothing calls this directly
no test coverage detected