def test_init__test_name__invalid(self):
        class Test(unittest.TestCase):
            def runTest(self): raise MyException()
            def test(self): pass

        try:
            Test('testfoo')
        except __HOLE__:
            pass
        else:
            self.fail("Failed to raise ValueError")

    # "Return the number of tests represented by the this test object. For
    # TestCase instances, this will always be 1"
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_unittest.py/Test_TestCase.test_init__test_name__invalid