#NEWLINE# def test_layout( self ) : #NEWLINE# #INDENT# form = RegistrationForm ( ) #NEWLINE# with self . assertTemplateUsed ( 'floppyforms/layouts/ul.html' ) : #NEWLINE# #INDENT# with self . assertTemplateUsed ( 'floppyforms/rows/li.html' ) : #NEWLINE# #INDENT# layout = render ( '{% form form using "floppyforms/layouts/ul.html" %}' , { #NEWLINE# #INDENT# 'form' : form , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertHTMLEqual ( layout , '\n        <li><label for="id_firstname">Your first name?</label> <input type="text" name="firstname" id="id_firstname" required /></li>\n        <li><label for="id_lastname">Your last name:</label> <input type="text" name="lastname" id="id_lastname" required /></li>\n        <li><label for="id_username">Username:</label> <input type="text" name="username" id="id_username" maxlength="30" required /></li>\n        <li><label for="id_password">Password:</label> <input type="password" name="password" id="id_password" required />\n            <span class="helptext">Make sure to use a secure password.</span></li>\n        <li><label for="id_password2">Retype password:</label> <input type="password" name="password2" id="id_password2" required /></li>\n        <li><label for="id_age">Age:</label> <input type="number" name="age" id="id_age" />\n            <input type="hidden" name="honeypot" id="id_honeypot" /></li>\n        ' )