예제 #1
0
class WorkoutTestData(TrainerTestData):

    def setUp(self):
        super(TrainerTestData, self).setUp()

        self.workout = Workout(
            owner=self.user,
            name='Test Workout',
        )
        self.workout.save()

    def tearDown(self):
        super(TrainerTestData, self).tearDown()
예제 #2
0
    def setUp(self):
        super(TrainerTestData, self).setUp()

        self.workout = Workout(
            owner=self.user,
            name='Test Workout',
        )
        self.workout.save()