(self)
| 749 | self.assertEqual(repr(bar.bar), "<class '%s.bar'>" % bar.__name__) |
| 750 | |
| 751 | def test_instance(self): |
| 752 | self._check_path_limitations('baz') |
| 753 | write_file(os.path.join(self.subpkgname, 'baz.py'), '''\ |
| 754 | class baz: |
| 755 | pass |
| 756 | ''') |
| 757 | importlib.invalidate_caches() |
| 758 | from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import baz |
| 759 | ibaz = baz.baz() |
| 760 | self.assertStartsWith(repr(ibaz), |
| 761 | "<%s.baz object at 0x" % baz.__name__) |
| 762 | |
| 763 | def test_method(self): |
| 764 | self._check_path_limitations('qux') |
nothing calls this directly
no test coverage detected