summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-01-09 09:32:53 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-01-09 09:32:53 -0600
commitee893ce8ae09fd40e0c1b674a3835992c2c07020 (patch)
treeebb6e856d718d9884c8759ccb4dee0f9237b54bc
parent95988ff46553633ca856a3fc986740c25dcc6fd2 (diff)
downloadaskbot-ee893ce8ae09fd40e0c1b674a3835992c2c07020.tar.gz
askbot-ee893ce8ae09fd40e0c1b674a3835992c2c07020.tar.bz2
askbot-ee893ce8ae09fd40e0c1b674a3835992c2c07020.zip
modified test case that is not relevant anymore (auto tag deletion)
-rw-r--r--askbot/tests/db_api_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/tests/db_api_tests.py b/askbot/tests/db_api_tests.py
index 0af6d955..91c25867 100644
--- a/askbot/tests/db_api_tests.py
+++ b/askbot/tests/db_api_tests.py
@@ -184,7 +184,7 @@ class DBApiTests(AskbotTestCase):
saved_question = models.Post.objects.get_questions().get(id = self.question.id)
self.assertTrue(saved_question.thread.answer_count == 1)
- def test_unused_tag_is_auto_deleted(self):
+ def test_unused_tag_is_not_auto_deleted(self):
self.user.retag_question(self.question, tags='one-tag')
tag = models.Tag.objects.get(name='one-tag')
self.assertEquals(tag.used_count, 1)
@@ -192,7 +192,7 @@ class DBApiTests(AskbotTestCase):
self.user.retag_question(self.question, tags='two-tag')
count = models.Tag.objects.filter(name='one-tag').count()
- self.assertEquals(count, 0)
+ self.assertEquals(count, 1)
@with_settings(MAX_TAG_LENGTH=200, MAX_TAGS_PER_POST=50)
def test_retag_tags_too_long_raises(self):