Skip to content

Commit

Permalink
adding more detailed investigation of find
Browse files Browse the repository at this point in the history
  • Loading branch information
talos committed Apr 5, 2012
1 parent 46a4f0d commit 43267c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/proxy/test/test_proxy_integration.py
Expand Up @@ -115,12 +115,14 @@ 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'
}
}
}
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)

0 comments on commit 43267c9

Please sign in to comment.