[Zope3-Users] ftest: No registered publisher found for (GET/)

Egon Frerich e.frerich at nord-com.net
Sun Apr 16 10:57:47 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

my simple test module is

> # -*- coding: utf8 -*-
> 
> import unittest
> from zope.app.testing.functional import FunctionalDocFileSuite
> 
> 
> def test_suite():
>     suite = unittest.TestSuite(
>         FunctionalDocFileSuite(u'RaumInfoVerwaltung2.txt'))
>     return suite
>     
> if __name__ == '__main__':
>     unittest.main(defaultTest='test_suite')

and I get

> File "C:\Zope3\Instanzen\versuche25\lib\python\raum_version6\RaumInfoVerwaltung2.txt", line 13, in RaumInfoVerwaltung2.txt
> Failed example:
>     print http(r"""
>     GET /manage HTTP/1.1
>     Authorization: Basic bWdyOm1ncnB3
>     """)
> Exception raised:
>     Traceback (most recent call last):
>       File "C:\Zope3\Trunk25\src\zope\testing\doctest.py", line 1256, in __run
>         compileflags, 1) in test.globs
>       File "<doctest RaumInfoVerwaltung2.txt[0]>", line 4, in <module>
>         """)
>       File "C:\Zope3\Trunk25\src\zope\app\testing\functional.py", line 573, in __call__
>         environment)
>       File "C:\Zope3\Trunk25\src\zope\app\testing\functional.py", line 606, in chooseRequestClass
>         return chooseClasses(method, environment)
>       File "C:\Zope3\Trunk25\src\zope\app\publication\httpfactory.py", line 33, in chooseClasses
>         factory = factoryRegistry.lookup(method, content_type, environment)
>       File "C:\Zope3\Trunk25\src\zope\app\publication\requestpublicationregistry.py", line 98, in lookup
>         'for (%s/%s)' % (method, mimetype))
>     ConfigurationError: No registered publisher found for (GET/)

Can someone tell me what is missing?

Regards,
Egon
- --
Egon Frerich, Freudenbergstr. 16, 28213 Bremen

E-Mail: e.frerich at nord-com.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEQltpuTzybIiyjvURAq1VAKCeGePAsUc7CdPqT7zcml/qk2lV3QCgqXRc
c2oVPJbixZ4ZDskHPJZqJEw=
=G4Fr
-----END PGP SIGNATURE-----


More information about the Zope3-users mailing list