def test_loadTestsFromNames__callable__wrong_type(self):
        m = types.ModuleType('m')
        def return_wrong():
            return 6
        m.return_wrong = return_wrong

        loader = unittest.TestLoader()
        try:
            suite = loader.loadTestsFromNames(['return_wrong'], m)
        except __HOLE__:
            pass
        else:
            self.fail("TestLoader.loadTestsFromNames failed to raise TypeError")

    ################################################################
    ### /Tests for TestLoader.loadTestsFromNames()

    ### Tests for TestLoader.getTestCaseNames()
    ################################################################

    # "Return a sorted sequence of method names found within testCaseClass"
    #
    # Test.foobar is defined to make sure getTestCaseNames() respects
    # loader.testMethodPrefix
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_unittest.py/Test_TestLoader.test_loadTestsFromNames__callable__wrong_type