Esempio n. 1
0
def test_nodes():
    "Basic test of registry.nodes"
    res = registry.nodes()
    assert dict == res.__class__
    assert 2 == len(res)
    assert 100 == len(res['data'])
    assert ['data', 'meta'] == sorted(res.keys())
Esempio n. 2
0
def test_nodes():
    "Basic test of registry.nodes"
    res = registry.nodes()
    assert dict == res.__class__
    assert 2 == len(res)
    assert 100 == len(res['data'])
    assert ['data', 'meta'] == sorted(res.keys())
Esempio n. 3
0
def test_nodes():
    "registry.nodes - basic test"
    res = registry.nodes()
    assert dict == res.__class__
    assert 2 == len(res)
    assert 100 == len(res["data"])
    assert ["data", "meta"] == sorted(res.keys())
Esempio n. 4
0
def test_nodes_return():
    "data param in registry.nodes"
    res = registry.nodes(data='identifier', uuid="03e816b3-8f58-49ae-bc12-4e18b358d6d9")
    assert dict == res.__class__
    assert 2 == len(res)
    assert 1 == len(res['data'])
    assert 5 == len(res['data'][0])
    assert 'identifier' in res['data'][0].keys()
Esempio n. 5
0
def test_nodes_return():
    "data param in registry.nodes"
    res = registry.nodes(data='identifier', uuid="03e816b3-8f58-49ae-bc12-4e18b358d6d9")
    assert dict == res.__class__
    assert 2 == len(res)
    assert 1 == len(res['data'])
    assert 5 == len(res['data'][0])
    assert 'identifier' in res['data'][0].keys()
Esempio n. 6
0
def test_nodes_return():
    "registry.nodes - data param"
    res = registry.nodes(data="identifier",
                         uuid="03e816b3-8f58-49ae-bc12-4e18b358d6d9")
    assert dict == res.__class__
    assert 2 == len(res)
    assert 1 == len(res["data"])
    assert 5 == len(res["data"][0])
    assert "identifier" in res["data"][0].keys()
Esempio n. 7
0
def test_nodes_limit():
    "limit param in registry.nodes"
    res = registry.nodes(limit=5)
    assert dict == res.__class__
    assert 5 == len(res['data'])
Esempio n. 8
0
def test_nodes_limit():
    "limit param in registry.nodes"
    res = registry.nodes(limit=5)
    assert dict == res.__class__
    assert 5 == len(res['data'])
Esempio n. 9
0
def test_nodes_limit():
    "registry.nodes - limit param"
    res = registry.nodes(limit=5)
    assert dict == res.__class__
    assert 5 == len(res["data"])