def test_create_new_dep(self): dept_managment = DepManagment() dept_managment.create_dept() create_res = dept_managment.get_response() assert create_res.get("errmsg") == "created"
def test_create_new_dep_by_param(self,name): dept_managment = DepManagment() dept_managment.create_dept(name) create_res = dept_managment.get_response() assert create_res.get("errmsg") =="created"