def it_retries_500s(requests_put):
        requests_put.return_value = Mock(status_code=500)

        cli.call('slug', 'metric', 42)

        expect(requests_put.call_count) == 3
 def it_handles_invalid_response():
     expect(cli.call('slug', 'metric', 42)) == False