def test_path_history(self, data): response = get_response(data) expect = json.loads(data.get("expect")) allure.attach( body= "Expect type is: {}, content is:\n{}\nActual type is: {}, content is:\n{}" .format(type(expect), expect, type(response.json()), response.json()), name=attach_2) assert expect == response.json()
def test_topology_relation_node_set(self, data): response = get_response(data) expect = json.loads(data.get("expect")) allure.attach( body= "Expect type is: {}, content is:\n{}\nActual type is: {}, content is:\n{}" .format(type(expect), expect, type(response.json()), response.json()), name=attach_2) assert isdictcontains(expect, response.json()) and isdictcontains( response.json(), expect)