コード例 #1
0
 def test_single(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component("os"), ("", "os"))
コード例 #2
0
 def test_relative_simple(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component("..utils"),
         ("", "utils"))
コード例 #3
0
 def test_relative_compound(self):
     res = ImportedSymbol._split_last_module_path_component("...a.b.c.d")
     self.assertEqual(res, ("a.b.c", "d"))
コード例 #4
0
 def test_compound(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component("os.path"),
         ("os", "path"))
コード例 #5
0
 def test_single(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component('os'), ('', 'os'))
コード例 #6
0
 def test_relative_compound(self):
     res = ImportedSymbol._split_last_module_path_component('...a.b.c.d')
     self.assertEqual(res, ('a.b.c', 'd'))
コード例 #7
0
 def test_relative_simple(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component('..utils'),
         ('', 'utils'))
コード例 #8
0
 def test_compound(self):
     self.assertEqual(
         ImportedSymbol._split_last_module_path_component('os.path'),
         ('os', 'path'))