def METHOD_NAME(self):
    class FailureTest(SynchronousTestCase):
        ran = False
        def test_foo(s):
            s.ran = True
            s.fail("boom!")
    test = FailureTest("test_foo")
    result = pyunit.TestResult()
    test.run(result)
    self.assertTrue(test.ran)
    self.assertEqual(1, result.testsRun)
    self.assertEqual(1, len(result.failures))
    self.assertFalse(result.wasSuccessful())