def test_adds_expected_failure(self):
        result = self._make_one()
        try:
            result.addExpectedFailure(FakeTestCase(), (None, None, None))
            line = result.tracker._test_cases['FakeTestCase'][0]
            self.assertEqual(line.status, 'not ok')
            self.assertEqual(line.directive, '(expected failure)')
        except __HOLE__:
            self.assertTrue(
                True, 'Python 2.6 does not support expected failure.')
dataset/ETHPy150Open mblayman/tappy/tap/tests/test_result.py/TestTAPTestResult.test_adds_expected_failure