'Raise a BulkAssertionError containing all of the captured AssertionErrors,
if there were any.'

def raise_assertion_errors(self):

    if self._assertion_errors:
        raise BulkAssertionError(self._assertion_errors)
