Esempio n. 1
0
def test_parse(string_table, running, waiting, terminated):
    section = kube_node_container_count.parse(string_table)
    assert section.running == running
    assert section.waiting == waiting
    assert section.terminated == terminated
Esempio n. 2
0
def test_discovery_returns_an_iterable(string_table):
    parsed = kube_node_container_count.parse(string_table)
    assert list(kube_node_container_count.discovery(parsed))
Esempio n. 3
0
def section(string_table):
    return kube_node_container_count.parse(string_table)