'A container with a restart policy of on-failure and a maximum
retry count is not restarted if it fails as many times than the
specified maximum.'

@flaky([u'FLOC-3742', u'FLOC-3746'])
def test_restart_policy_on_failure_maximum_count(self):

    d = self.start_restart_policy_container(mode=u'failure', restart_policy=RestartOnFailure(maximum_retry_count=5))
    d.addCallback(self.assertIn, ('5', '6'))
    return d
