'SubunitReporter.addFailure() sends the subunit \'addSuccess\' message,
since subunit doesn\'t model unexpected success.'

def test_addUnexpectedSuccessSendsSubunitAddSuccess(self):

    stream = BytesIO()
    subunitClient = reporter.TestProtocolClient(stream)
    subunitClient.addSuccess(self.test)
    subunitOutput = stream.getvalue()
    self.result.addUnexpectedSuccess(self.test)
    self.assertEqual(subunitOutput, self.stream.getvalue())
