def setUp(self): self.user = TrekkingManagerFactory.create(password='******') self.difficulty = DifficultyLevelFactory.create() success = self.client.login(username=self.user.username, password='******') self.assertTrue(success)
def setUp(self): self.user = TrekkingManagerFactory.create(password='******') self.difficulty = DifficultyLevelFactory.create() self.trek = TrekFactory.create(difficulty=self.difficulty)
def login(self): user = TrekkingManagerFactory(password='******') success = self.client.login(username=user.username, password='******') self.assertTrue(success)