'Failing subtests are added correctly using addSubTest().'

@unittest.skipUnless((tblib is not None), 'requires    tblib    to    be    installed')
def test_add_failing_subtests(self):

    result = RemoteTestResult()
    subtest_test = SampleFailingSubtest(methodName='dummy_test')
    subtest_test.run(result=result)
    events = result.events
    self.assertEqual(len(events), 4)
    event = events[1]
    self.assertEqual(event[0], 'addSubTest')
    self.assertEqual(str(event[2]), 'dummy_test    (test_runner.test_parallel.SampleFailingSubtest)    (index=0)')
    self.assertEqual(repr(event[3][1]), "AssertionError('0    !=    1',)")
    event = events[2]
    self.assertEqual(repr(event[3][1]), "AssertionError('2    !=    1',)")
