'Check the return value of capture().
Args:
expected: the expected "type" values.'

def check_capture(self, expected):

    c = Client()
    event = ExceptionEvent(c)
    result = event.capture()
    info = result['exception']
    values = info['values']
    type_names = [value['type'] for value in values]
    expected = self.transform_expected(expected)
    self.assertEqual(type_names, expected)
