Permalink
Browse files

add test case for view list_tags without submitting a term

  • Loading branch information...
1 parent 9655597 commit 695808e84f795be48ae77bbf0e3192f4146720cd @fhahn fhahn committed Aug 13, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 tagging_autocomplete/tests.py
@@ -0,0 +1,14 @@
+from django.core.urlresolvers import reverse
+from django.test import TestCase
+from django.utils import simplejson
+
+class TaggingAutocompleteViewTest(TestCase):
+ urls = 'tagging_autocomplete.urls'
+
+ def test_no_term(self):
+ """
+ test view list_tags without submitting a term
+ """
+ response = self.client.get(reverse('tagging_autocomplete-list'))
+ data = simplejson.loads(response.content)
+ self.assertEqual(data, [])

0 comments on commit 695808e

Please sign in to comment.