'A test which is marked as todo but succeeds will have an unexpected
success reported to its result. A test run is still successful even
when this happens.
If no C{Todo} is provided, then we make up a sensible default. This
allows standard Python unittests to use Twisted reporters.'

def test_unexpectedSuccessNoTodo(self):

    self.result.addUnexpectedSuccess(self.test)
    [(test, todo)] = self._getUnexpectedSuccesses(self.result)
    self.assertEqual(test, self.test)
    self.assertEqual(repr(todo), repr(makeTodo('Test    expected    to    fail')))
