示例#1
0
 def test_parse_url_defaults(self):
     self.assertEqual(("localhost", 8125, "sixpack"), metrics.parse_url(""))
示例#2
0
 def test_parse_url_defaults(self):
     self.assertEqual(('localhost', 8125, 'sixpack'), metrics.parse_url(''))
示例#3
0
 def test_parse_url(self):
     self.assertEqual(("example.com", 9999, "prefix"), metrics.parse_url("udp://example.com:9999/prefix"))
示例#4
0
 def test_parse_url(self):
     self.assertEqual(('example.com', 9999, 'prefix'),
                      metrics.parse_url('udp://example.com:9999/prefix'))