'When StdioOnnaStick is set as sys.stdout, prints become log messages.'

def test_print(self):

    oldStdout = sys.stdout
    sys.stdout = log.StdioOnnaStick()
    self.addCleanup(setattr, sys, 'stdout', oldStdout)
    print('This', end='    ')
    print('is    a    test')
    self.assertEqual(self.getLogMessages(), ['This    is    a    test'])
