def testEmailTaken(self): BeatMyGoalUser.updateUser(user=self.testUser, email="*****@*****.**") self.assertEqual(self.testUser.email, "*****@*****.**")
def testEditEmail(self): BeatMyGoalUser.updateUser(user=self.testUser, email="*****@*****.**") self.assertEqual(self.testUser.email, "*****@*****.**")
def testUsernameTaken(self): BeatMyGoalUser.updateUser(user=self.testUser, username="******") self.assertEqual(self.testUser.username, "test")
def testEditUsername(self): BeatMyGoalUser.updateUser(user=self.testUser, username="******") self.assertEqual(self.testUser.username, "newUsername")