def test_subpaths_with_trailing_dot(self): joined = metrics._metric_join(b"first.", b"second") self.assertEqual(joined, b"first.second")
def test_subpaths(self): joined = metrics._metric_join(b"first.second", b"third.fourth") self.assertEqual(joined, b"first.second.third.fourth")
def test_single_node(self): joined = metrics._metric_join(b"single") self.assertEqual(joined, b"single")
def test_two_nodes(self): joined = metrics._metric_join(b"first", b"second") self.assertEqual(joined, b"first.second")
def test_join_null_nodes(self): joined = metrics._metric_join(b"first.", None, b"second", None) self.assertEqual(joined, b"first.second")