disable tests for tracking

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-05-17 19:44:01 -04:00
parent 0377bf6dda
commit a8c8e69659
-13
View File
@@ -666,19 +666,6 @@ class HttpbinTestCase(unittest.TestCase):
)
self.assertEqual(response.status_code, 416)
def test_tracking_disabled(self):
with _setenv('HTTPBIN_TRACKING', None):
response = self.app.get('/')
data = response.data.decode('utf-8')
self.assertNotIn('google-analytics', data)
self.assertNotIn('perfectaudience', data)
def test_tracking_enabled(self):
with _setenv('HTTPBIN_TRACKING', '1'):
response = self.app.get('/')
data = response.data.decode('utf-8')
self.assertIn('perfectaudience', data)
def test_etag_if_none_match_matches(self):
response = self.app.get(
'/etag/abc',