summaryrefslogtreecommitdiffstats
path: root/askbot/tests/post_model_tests.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-09 20:05:44 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-09 20:05:44 -0400
commitd589c9cd76693c4cb86c1d6878e51c2fc463ab28 (patch)
tree5168ce6cb78eecc2353d3f45dfd82e25c52ad440 /askbot/tests/post_model_tests.py
parent4856a77e634aba169aae0db9861e1737049faff6 (diff)
downloadaskbot-d589c9cd76693c4cb86c1d6878e51c2fc463ab28.tar.gz
askbot-d589c9cd76693c4cb86c1d6878e51c2fc463ab28.tar.bz2
askbot-d589c9cd76693c4cb86c1d6878e51c2fc463ab28.zip
fixed question page urls and updated test cases
Diffstat (limited to 'askbot/tests/post_model_tests.py')
-rw-r--r--askbot/tests/post_model_tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/askbot/tests/post_model_tests.py b/askbot/tests/post_model_tests.py
index 06bceca1..dd1399c1 100644
--- a/askbot/tests/post_model_tests.py
+++ b/askbot/tests/post_model_tests.py
@@ -167,17 +167,17 @@ class PostModelTests(AskbotTestCase):
th.title = 'lala-x-lala'
p = Post(id=3, post_type='question')
p._thread_cache = th # cannot assign non-Thread instance directly
- self.assertEqual('/question/3/lala-x-lala', p.get_absolute_url(thread=th))
+ self.assertEqual('/question/3/lala-x-lala/', p.get_absolute_url(thread=th))
self.assertTrue(p._thread_cache is th)
- self.assertEqual('/question/3/lala-x-lala', p.get_absolute_url(thread=th))
+ self.assertEqual('/question/3/lala-x-lala/', p.get_absolute_url(thread=th))
def test_cached_get_absolute_url_2(self):
p = Post(id=3, post_type='question')
th = lambda:1
th.title = 'lala-x-lala'
- self.assertEqual('/question/3/lala-x-lala', p.get_absolute_url(thread=th))
+ self.assertEqual('/question/3/lala-x-lala/', p.get_absolute_url(thread=th))
self.assertTrue(p._thread_cache is th)
- self.assertEqual('/question/3/lala-x-lala', p.get_absolute_url(thread=th))
+ self.assertEqual('/question/3/lala-x-lala/', p.get_absolute_url(thread=th))
class ThreadTagModelsTests(AskbotTestCase):
@@ -673,4 +673,4 @@ class ThreadRenderCacheUpdateTests(AskbotTestCase):
# TODO: (in spare time - those cases should pass without changing anything in code but we should have them eventually for completness)
# - Publishing anonymous questions / answers
# - Re-posting question as answer and vice versa
-# - Management commands (like post_emailed_questions) \ No newline at end of file
+# - Management commands (like post_emailed_questions)