[Zope-tests] FAILED : Zope-trunk Python-2.4.2 : Linux

Zope Unit Tests zope-tests at epy.co.at
Wed Nov 9 22:11:12 EST 2005


Zope Unit Tests : FAILED
Zope-trunk Python-2.4.2 : Linux

Running /usr/local/python2.4/bin/python test.py -q
/usr/local/python2.4/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
  DeprecationWarning)
Running unit tests:


Failure in test /autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt
Failed doctest test for forms.txt
  File "/autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt", line 0

----------------------------------------------------------------------
File "/autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt", line 456, in forms.txt
Failed example:
    print http(r"""
    GET /test_folder_1_/ftf/+/addfieldcontent.html HTTP/1.1
    Accept-Language: de
    Authorization: Basic manager:r00t
    """, handle_errors=False)
Differences (ndiff with -expected +actual):
      HTTP/1.1 200 OK
    - ...Felderinhalt hinzuf...
    - ...Eine kurz...Titel...
    - ...Eine ausf...Beschreibung...
    - ...Irgendeine Zahl...
    - ...Irgendeine Liste...
    - ...hinzuf...
    - ...Auffrischen...
    - ...Hinzuf...
    - ...Objektname...
    + Content-Length: 2331
    + Content-Type: text/html; charset=iso-8859-1
    + <BLANKLINE>
    + <html>
    + <head>
    + <BLANKLINE>
    + <BLANKLINE>
    + </head>
    + <body>
    + <div>
    + <BLANKLINE>
    +   <div>
    + <BLANKLINE>
    +     <form action="http://localhost/test_folder_1_/ftf/%2B/addfieldcontent.html"
    +           method="post" enctype="multipart/form-data">
    + <BLANKLINE>
    +       <div>
    + <BLANKLINE>
    +         <h3>Felderinhalt hinzufügen</h3>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.title"
    +                    title="A short description of the event.">Titel</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.title" name="field.title" size="20" type="text" value=""  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.description"
    +                    title="A long description of the event.">Beschreibung</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><textarea cols="60" id="field.description" name="field.description" rows="15" ></textarea></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somenumber" title="">Irgendeine Zahl</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.somenumber" name="field.somenumber" size="10" type="text" value="0"  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somelist" title="">Irgendeine Liste</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><table border="0"><tr><td><input type="submit" name="field.somelist.add" value="Some item hinzufügen" /></td></tr></table>
    + <input type="hidden" name="field.somelist.count" value="0" /></div>
    + <BLANKLINE>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    +       </div>
    +       <br /><br />
    +       <div class="row">
    +         <div class="controls"><hr />
    +           <input type="submit" value="Auffrischen" />
    +           <input type="submit" value="Hinzufügen"
    +                  name="UPDATE_SUBMIT" />
    + <BLANKLINE>
    +                &nbsp;&nbsp;<b>Objektname</b>&nbsp;&nbsp;
    +               <input type="text" name="add_input_name" />
    + <BLANKLINE>
    +         </div>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="separator"></div>
    +     </form>
    +   </div>
    + <BLANKLINE>
    +   </div>
    + </body>
    + </html>
    + <BLANKLINE>
    + <BLANKLINE>
----------------------------------------------------------------------
File "/autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt", line 474, in forms.txt
Failed example:
    print http(r"""
    POST /test_folder_1_/ftf/+/addfieldcontent.html HTTP/1.1
    Accept-Language: de
    Authorization: Basic manager:r00t
    Content-Length: 670
    Content-Type: multipart/form-data; boundary=---------------------------19588947601368617292863650127

    -----------------------------19588947601368617292863650127
    Content-Disposition: form-data; name="field.title"


    -----------------------------19588947601368617292863650127
    Content-Disposition: form-data; name="field.description"


    -----------------------------19588947601368617292863650127
    Content-Disposition: form-data; name="field.somenumber"

    0
    -----------------------------19588947601368617292863650127
    Content-Disposition: form-data; name="UPDATE_SUBMIT"

    Hinzufxgen
    -----------------------------19588947601368617292863650127
    Content-Disposition: form-data; name="add_input_name"


    -----------------------------19588947601368617292863650127--
    """, handle_errors=False)
Differences (ndiff with -expected +actual):
      HTTP/1.1 200 OK
    - ...Felderinhalt hinzuf...
    - ...Ein Fehler ist aufgetreten...
    + Content-Length: 2467
    + Content-Type: text/html; charset=iso-8859-1
    + <BLANKLINE>
    + <html>
    + <head>
    + <BLANKLINE>
    + <BLANKLINE>
    + </head>
    + <body>
    + <div>
    + <BLANKLINE>
    +   <div>
    + <BLANKLINE>
    +     <form action="http://localhost/test_folder_1_/ftf/%2B/addfieldcontent.html"
    +           method="post" enctype="multipart/form-data">
    + <BLANKLINE>
    +       <div>
    + <BLANKLINE>
    +         <h3>Felderinhalt hinzufügen</h3>
    + <BLANKLINE>
    +         <p>Ein Fehler ist aufgetreten.</p>
    + <BLANKLINE>
    - ...Es gab <strong>1</strong> Eingabefehler...
    ? ^^^                                        ^^
    +         <p>Es gab <strong>1</strong> Eingabefehler.</p>
    ? ^^^^^^^^^^^                                        ^^^^
    - ...Eine kurz...Titel...
    - ...Erforderliche Eingabe fehlt...
    - ...Eine ausf...Beschreibung...
    - ...Irgendeine Zahl...
    - ...Irgendeine Liste...
    - ...hinzuf...
    - ...Auffrischen...
    - ...Hinzuf...
    - ...Objektname...
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.title"
    +                    title="A short description of the event.">Titel</label>
    +           </div>
    +           <span class="error">Erforderliche Eingabe fehlt.</span>
    +           <div class="field"><input class="textType" id="field.title" name="field.title" size="20" type="text" value=""  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.description"
    +                    title="A long description of the event.">Beschreibung</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><textarea cols="60" id="field.description" name="field.description" rows="15" ></textarea></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somenumber" title="">Irgendeine Zahl</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.somenumber" name="field.somenumber" size="10" type="text" value="0"  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somelist" title="">Irgendeine Liste</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><table border="0"><tr><td><input type="submit" name="field.somelist.add" value="Some item hinzufügen" /></td></tr></table>
    + <input type="hidden" name="field.somelist.count" value="0" /></div>
    + <BLANKLINE>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    +       </div>
    +       <br /><br />
    +       <div class="row">
    +         <div class="controls"><hr />
    +           <input type="submit" value="Auffrischen" />
    +           <input type="submit" value="Hinzufügen"
    +                  name="UPDATE_SUBMIT" />
    + <BLANKLINE>
    +                &nbsp;&nbsp;<b>Objektname</b>&nbsp;&nbsp;
    +               <input type="text" name="add_input_name" />
    + <BLANKLINE>
    +         </div>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="separator"></div>
    +     </form>
    +   </div>
    + <BLANKLINE>
    +   </div>
    + </body>
    + </html>
    + <BLANKLINE>
    + <BLANKLINE>
----------------------------------------------------------------------
File "/autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt", line 523, in forms.txt
Failed example:
    print http(r"""
    GET /test_folder_1_/ftf/i18ntest/edit.html HTTP/1.1
    Accept-Language: de
    Authorization: Basic manager:r00t
    """, handle_errors=False)
Differences (ndiff with -expected +actual):
      HTTP/1.1 200 OK
    - ...Felderinhalt bearbeiten...
    - ...Eine kurz...Titel...
    - ...Eine ausf...Beschreibung...
    - ...Irgendeine Zahl...
    - ...Irgendeine Liste...
    - ...hinzuf...
    - ...Auffrischen...
    - ...Abschicken...
    + Content-Length: 2192
    + Content-Type: text/html; charset=iso-8859-1
    + <BLANKLINE>
    + <BLANKLINE>
    + <html>
    + <head>
    + <BLANKLINE>
    + <BLANKLINE>
    + </head>
    + <body>
    + <div>
    + <BLANKLINE>
    +   <div>
    + <BLANKLINE>
    +     <form action="http://localhost/test_folder_1_/ftf/i18ntest/edit.html"
    +           method="POST" enctype="multipart/form-data">
    + <BLANKLINE>
    +       <div>
    + <BLANKLINE>
    +         <h3>Felderinhalt bearbeiten</h3>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.title"
    +                    title="A short description of the event.">Titel</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.title" name="field.title" size="20" type="text" value="titel"  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.description"
    +                    title="A long description of the event.">Beschreibung</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><textarea cols="60" id="field.description" name="field.description" rows="15" ></textarea></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somenumber" title="">Irgendeine Zahl</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.somenumber" name="field.somenumber" size="10" type="text" value="0"  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somelist" title="">Irgendeine Liste</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><table border="0"><tr><td><input type="submit" name="field.somelist.add" value="Some item hinzufügen" /></td></tr></table>
    + <input type="hidden" name="field.somelist.count" value="0" /></div>
    + <BLANKLINE>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    +       </div>
    + <BLANKLINE>
    +       <div class="row">
    +         <div class="controls">
    +           <input type="submit" value="Auffrischen" />
    +           <input type="submit" name="UPDATE_SUBMIT"
    +                  value="Abschicken" />
    +         </div>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="separator"></div>
    + <BLANKLINE>
    +     </form>
    + <BLANKLINE>
    +   </div>
    + <BLANKLINE>
    +   </div>
    + </body>
    + </html>
    + <BLANKLINE>
----------------------------------------------------------------------
File "/autotest/temp/python24-zope29/lib/python/Products/Five/form/tests/forms.txt", line 540, in forms.txt
Failed example:
    print http(r"""
    POST /test_folder_1_/ftf/i18ntest/edit.html HTTP/1.1
    Accept-Language: de
    Authorization: Basic manager:r00t
    Content-Length: 550
    Content-Type: multipart/form-data; boundary=---------------------------13070562555632576681565633754

    -----------------------------13070562555632576681565633754
    Content-Disposition: form-data; name="field.title"


    -----------------------------13070562555632576681565633754
    Content-Disposition: form-data; name="field.description"


    -----------------------------13070562555632576681565633754
    Content-Disposition: form-data; name="field.somenumber"

    0
    -----------------------------13070562555632576681565633754
    Content-Disposition: form-data; name="UPDATE_SUBMIT"

    Abschicken
    -----------------------------13070562555632576681565633754--
    """, handle_errors=False)
Differences (ndiff with -expected +actual):
      HTTP/1.1 200 OK
    - ...Felderinhalt bearbeiten...
    - ...Ein Fehler ist aufgetreten...
    + Content-Length: 2323
    + Content-Type: text/html; charset=iso-8859-1
    + <BLANKLINE>
    + <BLANKLINE>
    + <html>
    + <head>
    + <BLANKLINE>
    + <BLANKLINE>
    + </head>
    + <body>
    + <div>
    + <BLANKLINE>
    +   <div>
    + <BLANKLINE>
    +     <form action="http://localhost/test_folder_1_/ftf/i18ntest/edit.html"
    +           method="POST" enctype="multipart/form-data">
    + <BLANKLINE>
    +       <div>
    + <BLANKLINE>
    +         <h3>Felderinhalt bearbeiten</h3>
    + <BLANKLINE>
    +         <p>Ein Fehler ist aufgetreten.</p>
    + <BLANKLINE>
    - ...Es gab <strong>1</strong> Eingabefehler...
    ? ^^^                                        ^^
    +         <p>Es gab <strong>1</strong> Eingabefehler.</p>
    ? ^^^^^^^^^^^                                        ^^^^
    - ...Eine kurz...Titel...
    - ...Erforderliche Eingabe fehlt...
    - ...Eine ausf...Beschreibung...
    - ...Irgendeine Zahl...
    - ...Irgendeine Liste...
    - ...hinzuf...
    - ...Auffrischen...
    - ...Abschicken...
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.title"
    +                    title="A short description of the event.">Titel</label>
    +           </div>
    +           <span class="error">Erforderliche Eingabe fehlt.</span>
    +           <div class="field"><input class="textType" id="field.title" name="field.title" size="20" type="text" value=""  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.description"
    +                    title="A long description of the event.">Beschreibung</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><textarea cols="60" id="field.description" name="field.description" rows="15" ></textarea></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somenumber" title="">Irgendeine Zahl</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><input class="textType" id="field.somenumber" name="field.somenumber" size="10" type="text" value="0"  /></div>
    + <BLANKLINE>
    +       </div>
    +       <div class="row">
    + <BLANKLINE>
    +           <div class="label">
    +             <label for="field.somelist" title="">Irgendeine Liste</label>
    +           </div>
    + <BLANKLINE>
    +           <div class="field"><table border="0"><tr><td><input type="submit" name="field.somelist.add" value="Some item hinzufügen" /></td></tr></table>
    + <input type="hidden" name="field.somelist.count" value="0" /></div>
    + <BLANKLINE>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    + <BLANKLINE>
    + <BLANKLINE>
    +         <div class="separator"></div>
    +       </div>
    + <BLANKLINE>
    +       <div class="row">
    +         <div class="controls">
    +           <input type="submit" value="Auffrischen" />
    +           <input type="submit" name="UPDATE_SUBMIT"
    +                  value="Abschicken" />
    +         </div>
    +       </div>
    + <BLANKLINE>
    + <BLANKLINE>
    +       <div class="separator"></div>
    + <BLANKLINE>
    +     </form>
    + <BLANKLINE>
    +   </div>
    + <BLANKLINE>
    +   </div>
    + </body>
    + </html>
    + <BLANKLINE>

Script (Python):filepath:1: DeprecationWarning: integer argument expected, got float
/autotest/temp/python24-zope29/lib/python/ZClasses/ZClass.py:425: DeprecationWarning: ZClassMethodsSheet.manage_afterAdd is deprecated and will be removed in Zope 2.11, you should use an IObjectAddedEvent subscriber instead.
  self.propertysheets.methods.manage_afterAdd(item, container)
  Ran 4158 tests with 1 failures and 0 errors in 315.672 seconds.

FAILED


More information about the Zope-tests mailing list