def test_checksum_not_ok(self, should_retry):
     response = MagicMock()
     response.status = 300
     key = ProxiedKey()
     key.should_retry(response)
     should_retry.assert_called()
     key.should_retry(response)
     should_retry.assert_called()
 def test_no_checksum_key(self):
     response = MagicMock()
     response.status = 200
     key = ProxiedKey()
     assert key.should_retry(response)