예제 #1
0
 def testLoginInvalidPassword(self):
     """
     Tests login with wrong password
     """
     BeatMyGoalUser.create('user1', '*****@*****.**', 'pw')
     response = BeatMyGoalUser.login('user1','pww')
     self.assertTrue(response['errors'])
예제 #2
0
 def testLoginUser(self):
     """
     Tests login with registered username
     """
     BeatMyGoalUser.create('user1', '*****@*****.**', 'pw')
     response = BeatMyGoalUser.login('user1', 'pw')
     self.assertTrue(not response['errors'])
예제 #3
0
 def testLoginInvalidUser(self):
     """
     Tests login with unregistered username
     """
     response = BeatMyGoalUser.login('user1','pw')
     self.assertTrue(response['errors'])