Ejemplo n.º 1
0
 def test_subpaths_with_trailing_dot(self):
     joined = metrics._metric_join(b"first.", b"second")
     self.assertEqual(joined, b"first.second")
Ejemplo n.º 2
0
 def test_subpaths(self):
     joined = metrics._metric_join(b"first.second", b"third.fourth")
     self.assertEqual(joined, b"first.second.third.fourth")
Ejemplo n.º 3
0
 def test_single_node(self):
     joined = metrics._metric_join(b"single")
     self.assertEqual(joined, b"single")
Ejemplo n.º 4
0
 def test_two_nodes(self):
     joined = metrics._metric_join(b"first", b"second")
     self.assertEqual(joined, b"first.second")
Ejemplo n.º 5
0
 def test_join_null_nodes(self):
     joined = metrics._metric_join(b"first.", None, b"second", None)
     self.assertEqual(joined, b"first.second")