Example #1
0
 def setUp(self):
   super(InnerTest, self).setUp()
   begin_at = NOW
   end_at = NOW + datetime.timedelta(seconds=22)
   contest.RULES[RULE_TEST_ID] = RULE_TEST
   self.tid = base.wait(contest.add(DOMAIN_ID_DUMMY, TITLE, CONTENT, OWNER_UID,
                                    RULE_TEST_ID, begin_at, end_at, [777, 778, 780]))
Example #2
0
 def setUp(self):
     super(InnerTest, self).setUp()
     begin_at = NOW
     end_at = NOW + datetime.timedelta(seconds=22)
     self.tid = base.wait(
         contest.add(DOMAIN_ID_DUMMY, TITLE, CONTENT, OWNER_UID,
                     constant.contest.RULE_ACM, begin_at, end_at,
                     [1000, 1001, 1002]))
Example #3
0
 def setUp(self):
   super(InnerTest, self).setUp()
   begin_at = NOW
   end_at = NOW + datetime.timedelta(seconds=22)
   constant.contest.CONTEST_RULES.append(RULE_TEST_ID)
   contest.RULES[RULE_TEST_ID] = RULE_TEST
   self.tid = base.wait(contest.add(DOMAIN_ID_DUMMY, document.TYPE_CONTEST, TITLE, CONTENT, OWNER_UID,
                                    RULE_TEST_ID, begin_at, end_at, [777, 778, 780]))
Example #4
0
 def setUp(self):
   super(ProblemSolutionTest, self).setUp()
   base.wait(problem.add(DOMAIN_ID, TITLE, CONTENT, UID, PID))
Example #5
0
 def setUp(self):
   super(InnerTest, self).setUp()
   begin_at = NOW
   end_at = NOW + datetime.timedelta(seconds=22)
   self.tid = base.wait(contest.add(DOMAIN_ID_DUMMY, TITLE, CONTENT, OWNER_UID,
                                    contest.RULE_ACM, begin_at, end_at, [1000, 1001, 1002]))