def test_em_search(self, url, action, data, code, expect):
		em_search_url = f'{url}'
		em_search_resp = EmploymentManagement().do_em_search(em_search_url, data)
		em_search_code = em_search_resp.json()
		if em_search_code:
			actual = 'EM-succeed'
		else:
			actual = 'EM-failed'

		# 断言
		self.assertEqual(actual, expect)
	def test_em_technology(self, url, action, data, code, expect):
		ispass = request.quote(data.get('ispass'))
		student_id = data.get('sr.skillrecord_student_id')
		questions = request.quote(data.get('sr.questions'))
		valuate = request.quote(data.get('sr.valuate'))
		ndata ={'ispass': ispass, 'student_id': student_id,'questions':questions, 'valuate':valuate}
		textmod = parse.urlencode(ndata)
		em_technology_url = f'{url}?{textmod}'
		em_technology_resp = EmploymentManagement().do_em_technology(em_technology_url)
		em_technology_code = em_technology_resp.json()
		if em_technology_code:
			actual = 'EM-succeed'
		else:
			actual = 'EM-failed'

		# 断言
		self.assertEqual(actual, expect)
	def test_em_page(self, url, action, data, code, expect):
		em_page_url = f'{url}'
		em_page_resp = EmploymentManagement().do_em_page(em_page_url)
		em_page_code = em_page_resp.status_code
		# em_page_request = em_page_resp.request
		# em_page_request_data = em_page_request.find_element_by_css_selector('html>head>title').text
		# if em_page_request_data == '就业部学员管理':
		# 	actual = 'EM-succeed'
		# else:
		# 	actual = 'EM-failed'
		if em_page_code == code:
			actual = 'EM-succeed'
		else:
			actual = 'EM-failed'

		# 断言
		self.assertEqual(actual, expect)