From 43267c9c1471550c83561f2b98b2b08f41a01710 Mon Sep 17 00:00:00 2001 From: John Krauss Date: Thu, 5 Apr 2012 01:17:47 -0400 Subject: [PATCH] adding more detailed investigation of find --- server/proxy/test/test_proxy_integration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/proxy/test/test_proxy_integration.py b/server/proxy/test/test_proxy_integration.py index 083d8ee..7bb6b46 100644 --- a/server/proxy/test/test_proxy_integration.py +++ b/server/proxy/test/test_proxy_integration.py @@ -115,7 +115,7 @@ def test_request_simple_google(self): 'load': 'http://www.google.com/search?q=foo', 'then': { 'name': 'after foo', - 'find': 'foo(.*)', + 'find': 'foo(\w*)', 'replace': '$1' } } @@ -123,4 +123,6 @@ def test_request_simple_google(self): r = requests.post(URL, data=json.dumps(request)) self.assertEquals(200, r.status_code) response = json.loads(r.content) - #print(response) + self.assertEqual('loaded', response['status']) + values = response['children'].values()[0][0]['children'] + self.assertIn('bar', values)