示例#1
0
 def setUp(self):
     self.user = TrekkingManagerFactory.create(password='******')
     self.difficulty = DifficultyLevelFactory.create()
     success = self.client.login(username=self.user.username,
                                 password='******')
     self.assertTrue(success)
示例#2
0
 def setUp(self):
     self.user = TrekkingManagerFactory.create(password='******')
     self.difficulty = DifficultyLevelFactory.create()
     self.trek = TrekFactory.create(difficulty=self.difficulty)
示例#3
0
 def setUp(self):
     self.user = TrekkingManagerFactory.create(password='******')
     self.difficulty = DifficultyLevelFactory.create()
     success = self.client.login(username=self.user.username, password='******')
     self.assertTrue(success)
示例#4
0
 def login(self):
     user = TrekkingManagerFactory(password='******')
     success = self.client.login(username=user.username, password='******')
     self.assertTrue(success)
示例#5
0
 def setUp(self):
     self.user = TrekkingManagerFactory.create(password='******')
     self.difficulty = DifficultyLevelFactory.create()
     self.trek = TrekFactory.create(difficulty=self.difficulty)