示例#1
0
def test_extract_path_interval_pairs_1():
    inp = "30s:/mymetrics1,/mymetrics2"
    outp = marshalling.extract_path_interval_pairs(inp)
    toolbox.pstruct(outp, inp)

    assert outp == {"/mymetrics1": "30s", "/mymetrics2": None}
示例#2
0
def test_extract_path_interval_pairs_3():
    inp = None
    outp = marshalling.extract_path_interval_pairs(inp)
    toolbox.pstruct(outp, inp)

    assert outp == {"/metrics": None}