class SimpleWidgetTestCase(unittest.TestCase): def setUp(self): # from model.info_model import MInfo self.payload = {'user_name': 'giser', 'user_pass': '******', } self.muser = MUser() self.r = requests.post('http://jiheying.com/member/login', self.payload) # self.r2 = requests.post('http://192.168.4.166:8004/member/regist', self.payload) def tearDown(self): self.muser.delete_by_user('value1')
class SimpleWidgetTestCase(unittest.TestCase): def setUp(self): # from model.info_model import MInfo self.payload = {'user_name': 'value1', 'user_pass': '******', 'user_pass2': 'fdfsrwe', 'xemail': '*****@*****.**', 'xtel': '131321342'} self.muser = MUser() self.r = requests.post('http://192.168.4.166:8004/member/regist', self.payload) self.r2 = requests.post('http://192.168.4.166:8004/member/regist', self.payload) def tearDown(self): self.muser.delete_by_user('value1')
def setUp(self): # from model.info_model import MInfo self.payload = {'user_name': 'giser', 'user_pass': '******', } self.muser = MUser() self.r = requests.post('http://jiheying.com/member/login', self.payload)
def setUp(self): # from model.info_model import MInfo self.payload = {'user_name': 'value1', 'user_pass': '******', 'user_pass2': 'fdfsrwe', 'xemail': '*****@*****.**', 'xtel': '131321342'} self.muser = MUser() self.r = requests.post('http://192.168.4.166:8004/member/regist', self.payload) self.r2 = requests.post('http://192.168.4.166:8004/member/regist', self.payload)