(self)
| 19 | self.assertIs(os.path.join, import_item("os.path.join")) |
| 20 | |
| 21 | def test_bad_input(self): |
| 22 | class NotAString: |
| 23 | pass |
| 24 | |
| 25 | msg = "import_item accepts strings, not '%s'." % NotAString |
| 26 | with self.assertRaisesRegex(TypeError, msg): |
| 27 | import_item(NotAString()) # type:ignore[arg-type] |
nothing calls this directly
no test coverage detected