完善部分测试

This commit is contained in:
hohoTT
2015-08-29 15:20:49 +08:00
parent a216f8e1ea
commit 2252107a80
6 changed files with 30 additions and 9 deletions

View File

@@ -87,6 +87,11 @@ class ContestProblemMySubmissionListTest(TestCase):
contest=self.global_contest,
sort_index="a")
def test_contestsList_page_not_exist(self):
self.client.login(username="test1", password="testaa")
response = self.client.get('/contest/1/submissions/999/')
self.assertTemplateUsed(response, "utils/error.html")
class SubmissionAPITest(APITestCase):
def setUp(self):