'Test the logLevel keyword for customizing level used.'

def test_customLevel(self):

    self.lp.msg('Spam    egg.', logLevel=logging.ERROR)
    self.assertIn('Spam    egg.', self.out.getvalue())
    self.assertIn('ERROR', self.out.getvalue())
    self.out.seek(0, 0)
    self.out.truncate()
    self.lp.msg('Foo    bar.', logLevel=logging.WARNING)
    self.assertIn('Foo    bar.', self.out.getvalue())
    self.assertIn('WARNING', self.out.getvalue())
