def test_addaddress_success_addressnew_2(self):
'''添加收货地址失败:cellPhone为null'''
s = Session()
data_login = {'phoneArea': '86', 'phoneNumber': '20000000009', 'password': 'netease123'}
data_new = {'receiverName': 'anna', 'cellPhone': null, 'addressDetail': '浙江大学', 'province': '浙江省',
'city': '杭州市', 'area': '滨江区'}
result = s.post(self.url_ligon, json=data_login, headers=self.headers)
#cookies1 = result.cookies
#print('; '.join(['='.join(item) for item in cookies1.items()]))
result2 = s.post(self.url_add, json=data_new, headers=self.headers)
p_result2=result2.json()
self.assertEqual(result2.status_code,400)
self.assertEqual(p_result2['code'], 400)
self.assertEqual(p_result2['message'], '请求参数不正确')