def setUp(self): self.client.login(username='******') self.user = User.objects.get(username='******') round = Round.objects.get() round.start_date = datetime(2012, 7, 31, tzinfo=utc) round.end_date = datetime(2012, 8, 10, tzinfo=utc) round.results_date = datetime(2012, 8, 12, tzinfo=utc) round.save() problem = Problem.objects.get() config = ScoreRevealConfig() config.problem = problem config.reveal_limit = 2 config.disable_time = 60 config.save()