コード例 #1
0
ファイル: test_mgormprovider.py プロジェクト: gjhiggins/sprox
 def test_editableform(self):
     base = DojoUserEditableForm(session)
     rendered = base.__widget__()
     assert_in_xhtml("""<tr class="odd" id="email_address.container" title="" >
            <td class="labelcol">
                <label id="email_address.label" for="email_address" class="fieldlabel">Email Address</label>
            </td>
            <td class="fieldcol" >
                <input type="text" id="email_address" class="textfield" name="email_address" value="" />
            </td>
        </tr>""", rendered)
コード例 #2
0
ファイル: test_mgormprovider.py プロジェクト: kamroot/mc27
 def test__widget__(self):
     rendered = self.base.__widget__()
     assert_in_xhtml("""<thead>
        <tr>
                <th  class="col_0">actions</th>
                <th  class="col_1">town</th>
                <th  class="col_2">display_name</th>
                <th  class="col_3">created</th>
                <th  class="col_4">user_name</th>
                <th  class="col_5">town_id</th>
                <th  class="col_6">groups</th>
                <th  class="col_7">_password</th>
                <th  class="col_8">_id</th>
                <th  class="col_9">email_address</th>
        </tr>
    </thead>""", rendered)
コード例 #3
0
ファイル: test_sprockets.py プロジェクト: kamroot/mc27
 def test_get_empty(self):
     base = self.cache['listing__User']
     b = base()
     assert_in_xhtml("""<thead>
     <tr>
             <th  class="col_0">actions</th>
             <th  class="col_1">_password</th>
             <th  class="col_2">user_id</th>
             <th  class="col_3">user_name</th>
             <th  class="col_4">email_address</th>
             <th  class="col_5">display_name</th>
             <th  class="col_6">created</th>
             <th  class="col_7">town_id</th>
             <th  class="col_8">town</th>
             <th  class="col_9">password</th>
             <th  class="col_10">groups</th>
     </tr>
 </thead>""" , b)
コード例 #4
0
ファイル: base.py プロジェクト: beckastar/cleaner_markov
 def test_base(self):
     res = self.app.get('/')
     assert_in_xhtml(
         '<script type="text/javascript" src="paj"></script>',
         res.body
     )
     assert_in_xhtml(
         '<link type="text/css" rel="stylesheet" media="all" href="joe" />',
         res.body
     )
     assert_in_xhtml(
         '<p>TEST test</p>',
         res.body
     )