Commits

Anonymous committed e5129d4

assert_400 added

Comments (0)

Files changed (2)

flaskext/testing.py

         self.assertStatus(response, 200)
 
     assert_200 = assert200
-    
+
+    def assert400(self, response):
+        """
+        Checks if response status code is 400
+
+        :versionadded: 0.2.5
+        :param response: Flask response
+        """
+
+        self.assertStatus(response, 400)
+
+    assert_400 = assert400
+
+   
     def assert401(self, response):
         """
         Checks if response status code is 401
 
     assert_405 = assert405
 
+
 class TwillTestCase(TestCase):
     """
     TestCase with Twill helper methods.
 
 setup(
     name='Flask-Testing',
-    version='0.2.3',
+    version='0.2.5',
     url='http://bitbucket.org/danjac/flask-testing',
     license='BSD',
     author='Dan Jacob',