def test_bad_sysname(self):
        group = Group()
        try:
            group.add('0', ExecComp('y=x*2.0'), promotes=['x'])
        except __HOLE__ as err:
            self.assertEqual(str(err), ": '0' is not a valid system name.")
        try:
            group.add('foo:bar', ExecComp('y=x*2.0'), promotes=['x'])
        except NameError as err:
            self.assertEqual(str(err), ": 'foo:bar' is not a valid system name.")
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/test/test_group.py/TestGroup.test_bad_sysname