예제 #1
0
 def test_literal_is_not_importable(self):
     self.assertFalse(_importable(79))
예제 #2
0
 def test_None_is_not_importable(self):
     self.assertFalse(_importable(None))
예제 #3
0
 def test_instance_is_not_importable(self):
     self.assertFalse(_importable(dummy.ModuleClass(None)))
예제 #4
0
 def test_method_is_not_importable(self):
     self.assertFalse(_importable(dummy.ModuleClass.method))
예제 #5
0
 def test_nested_class_is_not_importable(self):
     self.assertFalse(_importable(dummy.ModuleClass.NestedClass))
예제 #6
0
 def test_module_level_class_is_importable(self):
     self.assertTrue(_importable(dummy.ModuleClass))
예제 #7
0
 def test_nested_function_is_not_importable(self):
     nested_function = dummy.factory_function(None)
     self.assertFalse(_importable(nested_function))
예제 #8
0
 def test_module_level_function_is_importable(self):
     self.assertTrue(_importable(dummy.factory_function))
예제 #9
0
 def test_module_is_importable(self):
     self.assertTrue(_importable(dummy))