def testArgs(self): Logger.normal('hello %s', 'world') self.assertEqual(Logger.stdout.getvalue(), 'test: hello world\n') self.assertEqual(Logger.stderr.getvalue(), '')
def testArgs(self): # pylint: disable=no-member Logger.normal('hello %s', 'world') self.assertEqual(Logger.stdout.getvalue(), 'test: hello world\n') self.assertEqual(Logger.stderr.getvalue(), '')
def testNoArgs(self): Logger.normal('hello %s') self.assertEqual(Logger.stdout.getvalue(), 'test: hello %s\n') self.assertEqual(Logger.stderr.getvalue(), '')