Add basic do-almost-nothing Brotli endpoint test

This commit is contained in:
Cory Benfield
2015-10-05 12:22:37 +01:00
parent b2bec66dc9
commit dfed4ad635
+4
View File
@@ -236,6 +236,10 @@ class HttpbinTestCase(unittest.TestCase):
response = self.app.get('/gzip')
self.assertEqual(response.status_code, 200)
def test_brotli(self):
response = self.app.get('/brotli')
self.assertEqual(response.status_code, 200)
def test_digest_auth_with_wrong_password(self):
auth_header = 'Digest username="user",realm="wrong",nonce="wrong",uri="/digest-auth/user/passwd/MD5",response="wrong",opaque="wrong"'
response = self.app.get(