trivial: assert SendtoCalls consistently
Use same assertion pattern as introduced in the Related-Change and include the host and port in the assertion. Change-Id: I7cccf3b8cdfe157c27fb8e0b1f432a649970a865 Related-Change: I9a016de1010dd17e91bc85877413b34d2c3287c7
This commit is contained in:
1 changed files with 2 additions and 2 deletions
@@ -238,8 +238,8 @@ class TestS3ApiMiddleware(S3ApiTestCase):
self.assertEqual('s3api.', s3api.logger.logger.statsd_client._prefix)
client = s3api.logger.logger.statsd_client
self.assertEqual({'test-metric': 1}, client.get_increment_counts())
self.assertEqual(1, len(client.sendto_calls))
self.assertEqual(b's3api.test-metric:1|c', client.sendto_calls[0][0])
self.assertEqual([(b's3api.test-metric:1|c', ('1.2.3.4', 8125))],
client.sendto_calls)
def test_non_s3_request_passthrough(self):
req = Request.blank('/something')
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.