Пример #1
0
def test_save_status():
    server = ServerStatus(1)
    server.get_status()
    server.save_status(COLL)
    element = COLL['1']
    assert element['Application'] == 'Cache2'
Пример #2
0
def test_server_get_status():
    server = ServerStatus(4)
    data = server.get_status()
    assert type(data) is dict