Beispiel #1
0
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')
Beispiel #2
0
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')
Beispiel #3
0
 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)
Beispiel #4
0
 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)