def test_parse_url_defaults(self): self.assertEqual(("localhost", 8125, "sixpack"), metrics.parse_url(""))
def test_parse_url_defaults(self): self.assertEqual(('localhost', 8125, 'sixpack'), metrics.parse_url(''))
def test_parse_url(self): self.assertEqual(("example.com", 9999, "prefix"), metrics.parse_url("udp://example.com:9999/prefix"))
def test_parse_url(self): self.assertEqual(('example.com', 9999, 'prefix'), metrics.parse_url('udp://example.com:9999/prefix'))