'You can\'t make up log level names.'

def test_levelWithInvalidName(self):

    bogus = '*bogus*'
    try:
        LogLevel.levelWithName(bogus)
    except InvalidLogLevelError as e:
        self.assertIs(e.level, bogus)
    else:
        self.fail('Expected    InvalidLogLevelError.')
