ccomb at free.fr
Tue Jan 11 20:08:44 EST 2011
Le 11/01/2011 12:03, tlcastro01 a écrit :
> using bb1.0b4:
> what is wrong with this ftests?
> >>> b=Browser()
> >>> b.addHeader('Authorization', 'Basic mgr:mgrpw')
> >>> b.open('http://localhost/@@siteformgr')
> and after ./bin/test i have an Error 401, that means unauthorized user. this
> is a bug or i'm doing something wrong??
There is something wrong with ftesting.zcml from the 1.0b4 template.
It should work as expected in the trunk, maybe you should wait a few days for
the 1.0 release.
Otherwise you can use the trunk like this:
$ svn co http://svn.zope.org/repos/main/bluebream/trunk/ bluebream
$ virtualenv --no-site-packages --distribute sandbox
$ ./sandbox/bin/pip install ./bluebream
$ ./sandbox/bin/paster create -t bluebream myproject
$ cd myproject
$ ../sandbox/bin/python bootstrap.py
write your test with testbrowser
More information about the bluebream