完善部分测试

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

@@ -568,6 +568,13 @@ class ContestListPageTest(TestCase):
response = self.client.get('/contests/2/')
self.assertTemplateUsed(response, "utils/error.html")
def test_query_by_keyword(self):
response = self.client.get(self.url + "?keyword=title1")
self.assertEqual(response.status_code, 200)
def test_query_by_join_successfully(self):
response = self.client.get(self.url + "?join=True")
self.assertEqual(response.status_code, 200)