1 from paste import proxy 2 from paste.fixture import TestApp 3 4 def test_paste_website(): 5 # Not the most robust test... 6 # need to test things like POSTing to pages, and getting from pages 7 # that don't set content-length. 8 app = proxy.Proxy('http://pythonpaste.org') 9 app = TestApp(app) 10 res = app.get('/') 11 assert 'documentation' in res 12 13