'Performed before every test'

def setUp(self):

    super(TestNextMethods, self).setUp()
    self.EXERCISE_ID = self.content_exercises[0].id
    self.EXERCISE_ID2 = self.content_exercises[1].id
    self.EXERCISE_ID_STRUGGLE = self.content_exercises[2].id
    self.facility = Facility(name=self.FACILITY)
    self.facility.save()
    self.facilitygroup = FacilityGroup(name=self.GROUP, description='', facility=self.facility)
    self.facilitygroup.save()
    self.user1 = FacilityUser(username=self.USERNAME1, facility=self.facility, group=self.facilitygroup)
    self.user1.set_password(self.PASSWORD)
    self.user1.save()
    self.user2 = FacilityUser(username=self.USERNAME2, facility=self.facility, group=self.facilitygroup)
    self.user2.set_password(self.PASSWORD)
    self.user2.save()
    self.original_exerciselog = ExerciseLog(exercise_id=self.EXERCISE_ID, user=self.user1)
    self.original_exerciselog.points = self.ORIGINAL_POINTS
    self.original_exerciselog.attempts = self.ORIGINAL_ATTEMPTS
    self.original_exerciselog.streak_progress = self.ORIGINAL_STREAK_PROGRESS
    self.original_exerciselog.latest_activity_timestamp = self.TIMESTAMP_EARLY
    self.original_exerciselog.completion_timestamp = self.TIMESTAMP_EARLY
    self.original_exerciselog.save()
    self.original_exerciselog2 = ExerciseLog(exercise_id=self.EXERCISE_ID, user=self.user2, struggling=False)
    self.original_exerciselog2.points = self.ORIGINAL_POINTS
    self.original_exerciselog2.attempts = self.ORIGINAL_ATTEMPTS
    self.original_exerciselog2.streak_progress = self.ORIGINAL_STREAK_PROGRESS
    self.original_exerciselog2.latest_activity_timestamp = self.TIMESTAMP_EARLY
    self.original_exerciselog2.completion_timestamp = self.TIMESTAMP_EARLY
    self.original_exerciselog2.save()
    self.original_exerciselog2 = ExerciseLog(exercise_id=self.EXERCISE_ID2, user=self.user2, struggling=False)
    self.original_exerciselog2.points = self.ORIGINAL_POINTS
    self.original_exerciselog2.attempts = self.ORIGINAL_ATTEMPTS
    self.original_exerciselog2.streak_progress = self.ORIGINAL_STREAK_PROGRESS
    self.original_exerciselog2.latest_activity_timestamp = self.TIMESTAMP_LATER
    self.original_exerciselog2.completion_timestamp = self.TIMESTAMP_LATER
    self.original_exerciselog2.save()
    self.original_exerciselog3 = ExerciseLog(exercise_id=self.EXERCISE_ID_STRUGGLE, user=self.user2, struggling=True)
    self.original_exerciselog3.points = self.ORIGINAL_POINTS
    self.original_exerciselog3.attempts = self.ORIGINAL_POINTS
    self.original_exerciselog3.streak_progress = 0
    self.original_exerciselog3.attempts = 100
    self.original_exerciselog3.latest_activity_timestamp = self.TIMESTAMP_STRUGGLE
    self.original_exerciselog3.completion_timestamp = self.TIMESTAMP_STRUGGLE
    self.original_exerciselog3.save()
