Update tests

This commit is contained in:
Karl Hobley 2015-07-09 10:20:13 +01:00
parent 064aaa654b
commit 4b49c0ea9e

View file

@ -25,7 +25,8 @@ class TestBackendConfiguration(TestCase):
self.assertEqual(set(backends.keys()), set(['varnish']))
self.assertIsInstance(backends['varnish'], HTTPBackend)
self.assertEqual(backends['varnish'].cache_location, 'http://localhost:8000')
self.assertEqual(backends['varnish'].cache_scheme, 'http')
self.assertEqual(backends['varnish'].cache_netloc, 'localhost:8000')
def test_cloudflare(self):
backends = get_backends(backend_settings={
@ -78,7 +79,8 @@ class TestBackendConfiguration(TestCase):
self.assertEqual(set(backends.keys()), set(['default']))
self.assertIsInstance(backends['default'], HTTPBackend)
self.assertEqual(backends['default'].cache_location, 'http://localhost:8000')
self.assertEqual(backends['default'].cache_scheme, 'http')
self.assertEqual(backends['default'].cache_netloc, 'localhost:8000')
PURGED_URLS = []