pyquery
changeset 79:58b15bae680f
use pyquery.org for testing
| author | Gael Pasgrimaud <gael@gawel.org> |
|---|---|
| date | Sat Jan 24 03:00:22 2009 +0100 (18 months ago) |
| parents | 85aa941b493b |
| children | 91a4330801b9 |
| files | pyquery/README.txt pyquery/test.py setup.cfg |
line diff
1.1 --- a/pyquery/README.txt Sat Jan 24 02:59:30 2009 +0100 1.2 +++ b/pyquery/README.txt Sat Jan 24 03:00:22 2009 +0100 1.3 @@ -312,14 +312,14 @@ 1.4 1.5 If `Paste`_ is installed, you are able to get url directly with a `Proxy`_ app:: 1.6 1.7 - >>> a = d.get('https://bitbucket.org/olauzanne/pyquery/') 1.8 + >>> a = d.get('http://pyquery.org/') 1.9 >>> a 1.10 [<html>] 1.11 1.12 You can retrieve the app response:: 1.13 1.14 >>> print a.response.status 1.15 - 301 Moved Permanently 1.16 + 200 OK 1.17 1.18 The response attribute is a `WebOb`_ `Response`_ 1.19
2.1 --- a/pyquery/test.py Sat Jan 24 02:59:30 2009 +0100 2.2 +++ b/pyquery/test.py Sat Jan 24 03:00:22 2009 +0100 2.3 @@ -174,8 +174,8 @@ 2.4 2.5 def test_proxy(self): 2.6 e = self.klass([]) 2.7 - val = e.get('http://pypi.python.org/pypi/pyquery/') 2.8 - assert len(val('div#breadcrumb')) == 1, (val.response, val) 2.9 + val = e.get('http://pyquery.org/') 2.10 + assert len(val('div.document')) == 1, (val.response, val) 2.11 2.12 def test_get(self): 2.13 e = self.klass(app=application)
