def test_single(self): self.assertEqual( ImportedSymbol._split_last_module_path_component("os"), ("", "os"))
def test_relative_simple(self): self.assertEqual( ImportedSymbol._split_last_module_path_component("..utils"), ("", "utils"))
def test_relative_compound(self): res = ImportedSymbol._split_last_module_path_component("...a.b.c.d") self.assertEqual(res, ("a.b.c", "d"))
def test_compound(self): self.assertEqual( ImportedSymbol._split_last_module_path_component("os.path"), ("os", "path"))
def test_single(self): self.assertEqual( ImportedSymbol._split_last_module_path_component('os'), ('', 'os'))
def test_relative_compound(self): res = ImportedSymbol._split_last_module_path_component('...a.b.c.d') self.assertEqual(res, ('a.b.c', 'd'))
def test_relative_simple(self): self.assertEqual( ImportedSymbol._split_last_module_path_component('..utils'), ('', 'utils'))
def test_compound(self): self.assertEqual( ImportedSymbol._split_last_module_path_component('os.path'), ('os', 'path'))