'Test that L{reporter.SafeStream} successfully write to its original
stream even if an interrupt happens during the write.'

def test_safe(self):

    stream = NativeStringIO()
    broken = BrokenStream(stream)
    safe = reporter.SafeStream(broken)
    safe.write('Hello')
    self.assertEqual(stream.getvalue(), 'Hello')
