完善部分测试

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

No files matched your search

+5
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):