'Names not defined with a L{NamedConstant} instance cannot be looked up
using L{Names.lookupByName}.'

def test_notLookupMissingByName(self):

    self.assertRaises(ValueError, self.METHOD.lookupByName, 'lookupByName')
    self.assertRaises(ValueError, self.METHOD.lookupByName, '__init__')
    self.assertRaises(ValueError, self.METHOD.lookupByName, 'foo')
    self.assertRaises(ValueError, self.METHOD.lookupByName, 'extra')
