MCPcopy Create free account
hub / github.com/ipython/traitlets / test_import_unicode

Method test_import_unicode

tests/utils/test_importstring.py:16–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15class TestImportItem(TestCase):
16 def test_import_unicode(self):
17 self.assertIs(os, import_item("os"))
18 self.assertIs(os.path, import_item("os.path"))
19 self.assertIs(os.path.join, import_item("os.path.join"))
20
21 def test_bad_input(self):
22 class NotAString:

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.90

Tested by

no test coverage detected