def test_class_for_name(self):
        cls = class_for_name('grizzled.config.Configuration')
        got_name = '%s.%s' % (cls.__module__, cls.__name__)
        assert got_name == 'grizzled.config.Configuration'

        try:
            class_for_name('grizzled.foo.bar.baz')
            assert False
        except NameError:
            pass
        except __HOLE__:
            pass
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/test/system/Test.py/TestSys.test_class_for_name