Lines Matching refs:module3
405 for module3, module2 in REVERSE_IMPORT_MAPPING.items():
406 with self.subTest((module3, module2)):
408 getmodule(module3)
411 if module3[:1] != '_':
413 self.assertEqual(IMPORT_MAPPING[module2], module3)
416 for (module3, name3), (module2, name2) in REVERSE_NAME_MAPPING.items():
417 with self.subTest(((module3, name3), (module2, name2))):
419 attr = getattribute(module3, name3)
422 attr = getattribute(module3, name3)
426 if module3[:1] != '_':
427 self.assertEqual((module, name), (module3, name3))
429 attr = getattribute(module3, name3)
436 for module2, module3 in IMPORT_MAPPING.items():
437 with self.subTest((module2, module3)):
439 getmodule(module3)
443 if ((module2, module3) not in ALT_IMPORT_MAPPING and
444 REVERSE_IMPORT_MAPPING.get(module3, None) != module2):
446 if (module3, module2) == (m3, m2):
450 (module3, module2))
451 module = REVERSE_IMPORT_MAPPING.get(module3, module3)
453 self.assertEqual(module, module3)
456 for (module2, name2), (module3, name3) in NAME_MAPPING.items():
457 with self.subTest(((module2, name2), (module3, name3))):
459 attr = getattribute(module3, name3)
462 module, name = reverse_mapping(module3, name3)
463 if (module2, name2, module3, name3) not in ALT_NAME_MAPPING:
466 self.assertEqual((module, name), (module3, name3))