'An container with a restart policy of on-failure is restarted
after it exits with a non-zero result.'

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

    d = self.start_restart_policy_container(mode=u'failure-then-success', restart_policy=RestartOnFailure())
    d.addCallback(self.assertEqual, '2')
    return d
