diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-24 05:36:03 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-24 05:36:03 -0400 |
commit | aeeb5f27b619af81d1067505ad0760a34494cfa8 (patch) | |
tree | e2cc1c08c0445307630d04e44365065da3e695d5 /askbot | |
parent | 98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7 (diff) | |
parent | 583d249d7c89f4108ece09d82577301ec6909f8d (diff) | |
download | askbot-aeeb5f27b619af81d1067505ad0760a34494cfa8.tar.gz askbot-aeeb5f27b619af81d1067505ad0760a34494cfa8.tar.bz2 askbot-aeeb5f27b619af81d1067505ad0760a34494cfa8.zip |
Merge branch 'github'
Diffstat (limited to 'askbot')
-rw-r--r-- | askbot/tests/question_views_tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/askbot/tests/question_views_tests.py b/askbot/tests/question_views_tests.py index 9486b854..da3e081d 100644 --- a/askbot/tests/question_views_tests.py +++ b/askbot/tests/question_views_tests.py @@ -33,7 +33,7 @@ class PrivateQuestionViewsTests(AskbotTestCase): dom = BeautifulSoup(response2.content) title = dom.find('h1').text self.assertTrue(unicode(const.POST_STATUS['private']) in title) - question = models.Thread.objects.get(id=1) + question = models.Thread.objects.get() self.assertEqual(question.title, self.qdata['title']) self.assertFalse(models.Group.objects.get_global_group() in set(question.groups.all())) @@ -114,7 +114,7 @@ class PrivateQuestionViewsTests(AskbotTestCase): class PrivateAnswerViewsTests(AskbotTestCase): - + def setUp(self): self._backup = askbot_settings.GROUPS_ENABLED askbot_settings.update('GROUPS_ENABLED', True) @@ -147,7 +147,6 @@ class PrivateAnswerViewsTests(AskbotTestCase): response = self.client.get(self.question.get_absolute_url()) self.assertFalse('some answer text' in response.content) - def test_private_checkbox_is_on_when_editing_private_answer(self): answer = self.post_answer( question=self.question, user=self.user, is_private=True |