@@ -1778,7 +1778,7 @@ def factory(self, user, timestamp=None):
17781778 request = factory .request ()
17791779 request .contest = self .contest
17801780 request .user = user
1781- request .timestamp = timestamp or self .during
1781+ request .timestamp = timestamp or self .during
17821782 return request
17831783
17841784 def setUp (self ):
@@ -3825,7 +3825,7 @@ class TestRulesVisibility(TestCase):
38253825 'oioioi.oi.controllers.BOIOnlineContestController' ,
38263826 'oioioi.pa.controllers.PAContestController' ,
38273827 'oioioi.pa.controllers.PAFinalsContestController' ,
3828- 'oioioi.programs.controllers.ProgrammingContestController'
3828+ 'oioioi.programs.controllers.ProgrammingContestController'
38293829 ]
38303830
38313831 # left to fill in when added, in order of the controllers above
@@ -3905,7 +3905,7 @@ class TestRulesVisibility(TestCase):
39053905 None
39063906 ],
39073907 [
3908- datetime (2012 , 8 , 15 , 20 , 27 , 58 , tzinfo = timezone .utc ),
3908+ datetime (2012 , 8 , 15 , 20 , 27 , 58 , tzinfo = timezone .utc ),
39093909 datetime (2013 , 4 , 20 , 21 , 37 , 13 , tzinfo = timezone .utc )
39103910 ],
39113911 [
@@ -3919,12 +3919,12 @@ def _set_problem_limits(self, url, limits_list):
39193919 problem = ProblemInstance .objects .get (pk = i + 1 )
39203920 problem .submissions_limit = limits_list [i ]
39213921 problem .save ()
3922-
3922+
39233923 response = self .client .get (url , follow = True )
39243924 self .assertEqual (response .status_code , 200 )
39253925
39263926 return response
3927-
3927+
39283928 def _set_results_dates (self , url , dates ):
39293929 round = Round .objects .get ()
39303930 round .results_date = dates [0 ]
@@ -3947,7 +3947,7 @@ def _change_controller(self, public_results=False):
39473947 'oioioi.programs.controllers.ProgrammingContestController'
39483948 )
39493949 contest .save ()
3950-
3950+
39513951 def test_dashboard_view (self ):
39523952 for c in self .controller_names :
39533953 contest = Contest .objects .get ()
@@ -3958,7 +3958,7 @@ def test_dashboard_view(self):
39583958 response = self .client .get (url , follow = True )
39593959 self .assertEqual (response .status_code , 200 )
39603960 self .assertContains (response , "Rules" )
3961-
3961+
39623962 def test_contest_type (self ):
39633963 for c , d in zip (self .controller_names , self .scoring_descriptions ):
39643964 contest = Contest .objects .get ()
@@ -4015,7 +4015,7 @@ def test_contest_dates(self):
40154015 contest = Contest .objects .get ()
40164016 contest .controller_name = c
40174017 contest .save ()
4018-
4018+
40194019 round = Round .objects .get ()
40204020 round .end_date = None
40214021 round .save ()
@@ -4042,7 +4042,7 @@ def test_ranking_visibility(self):
40424042 response = self ._set_results_dates (url , self .visibility_dates [0 ])
40434043 self .assertContains (response , "In round Round 1, your results as well as " \
40444044 "public ranking will be visible after 2012-08-15 20:27:58." )
4045-
4045+
40464046 self ._change_controller (public_results = True )
40474047 response = self ._set_results_dates (url , self .visibility_dates [1 ])
40484048 self .assertContains (response , "In round Round 1, your results will be visible after 2012-08-15 20:27:58" \
@@ -4054,7 +4054,7 @@ def test_ranking_visibility(self):
40544054 with fake_time (datetime (2012 , 12 , 24 , 11 , 23 , 56 , tzinfo = timezone .utc )):
40554055 response = self ._set_results_dates (url , self .visibility_dates [0 ])
40564056 self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
4057-
4057+
40584058 self ._change_controller (public_results = True )
40594059 response = self ._set_results_dates (url , self .visibility_dates [1 ])
40604060 self .assertContains (response , "In round Round 1, your results will be visible immediately" \
@@ -4066,7 +4066,7 @@ def test_ranking_visibility(self):
40664066 with fake_time (datetime (2014 , 8 , 26 , 11 , 23 , 56 , tzinfo = timezone .utc )):
40674067 response = self ._set_results_dates (url , self .visibility_dates [0 ])
40684068 self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
4069-
4069+
40704070 self ._change_controller (public_results = True )
40714071 response = self ._set_results_dates (url , self .visibility_dates [1 ])
40724072 self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
0 commit comments