'Tests that inherit from our base test cases and use @flaky are retried
by default.'

@given(base_test_cases, jira_keys, num_runs, num_runs)
def test_retry_by_default(self, base_test_case, jira_keys, max_runs, min_passes):

    [min_passes, max_runs] = sorted([min_passes, max_runs])
    class ErroringTest(base_test_case, ):
        @flaky(jira_keys, max_runs, min_passes)
        def test_error(self):
            (1 / 0)
    test = ErroringTest('test_error')
    self.assertThat(run_test(test), has_results(tests_run=Equals(1), errors=MatchesListwise([MatchesListwise([Equals(test), MatchesAll(Contains('flaky:'), Contains('ZeroDivisionError'))])])))
