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