'Converts JSON test failures.'

def add_json_failures_to_results(self, failures, test):

    for failure in failures:
        test.result.addFailure(test, self.casper_failure_to_unittest_failure(failure))
        test.result.testsRun += 1
