def test_loadTestsFromName__relative_bad_object(self):
        m = types.ModuleType('m')
        m.testcase_1 = object()

        loader = unittest.TestLoader()
        try:
            loader.loadTestsFromName('testcase_1', m)
        except __HOLE__:
            pass
        else:
            self.fail("Should have raised TypeError")

    # "The specifier name is a ``dotted name'' that may
    # resolve either to ... a test case class"
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_unittest.py/Test_TestLoader.test_loadTestsFromName__relative_bad_object