'Any warnings emitted by a test which are flushed are not emitted to the
Python warning system.'

def test_flushed(self):

    result = TestResult()
    case = Mask.MockTests('test_flushed')
    output = StringIO()
    monkey = self.patch(sys, 'stdout', output)
    case.run(result)
    monkey.restore()
    self.assertEqual(output.getvalue(), '')
