'Wrapper for one of the test method of L{ContainMalformed}.'

def _test(self, method):

    stream = NativeStringIO()
    trialRunner = runner.TrialRunner(reporter.Reporter, stream=stream)
    test = MalformedMethodTests.ContainMalformed(method)
    result = trialRunner.run(test)
    self.assertEqual(result.testsRun, 1)
    self.assertFalse(result.wasSuccessful())
    self.assertEqual(len(result.errors), 1)
