diff bio/tests/test_views.py @ 769:cd3343abca9d

For issue #66, member search function should use GET method.
author Brian Neal <bgneal@gmail.com>
date Wed, 22 Jan 2014 20:07:39 -0600
parents 1b1a12abde3b
children 9e803323a0d0
line wrap: on
line diff
--- a/bio/tests/test_views.py	Tue Jan 21 19:42:09 2014 -0600
+++ b/bio/tests/test_views.py	Wed Jan 22 20:07:39 2014 -0600
@@ -38,7 +38,7 @@
         Test a valid username.
         """
 
-        response = self.client.post(reverse('bio-member_search'),
+        response = self.client.get(reverse('bio-member_search'),
                             {'username': self.USERNAME},
                             follow=True)
 
@@ -56,7 +56,7 @@
         Test a invalid username.
         """
 
-        response = self.client.post(reverse('bio-member_search'),
+        response = self.client.get(reverse('bio-member_search'),
                             {'username': self.USERNAME + '!'})
 
         self.assertEqual(response.status_code, 200)
@@ -68,7 +68,7 @@
         """
 
         try:
-            response = self.client.post(reverse('bio-member_search'),
+            response = self.client.get(reverse('bio-member_search'),
                                 {'username': self.USERNAME + ' '},
                                 follow=True)
         except NoReverseMatch: