Code

Ticket #13298: 13298.patch

File 13298.patch, 791 bytes (added by mk, 4 years ago)
  • tests/regressiontests/admin_views/tests.py

    diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
    index 9b21cba..8749fee 100644
    a b class ReadonlyTest(TestCase): 
    19561956        self.assertNotContains(response, 'name="posted"') 
    19571957        # 3 fields + 2 submit buttons + 4 inline management form fields, + 2 
    19581958        # hidden fields for inlines + 1 field for the inline + 2 empty form 
    1959         self.assertEqual(response.content.count("input"), 14) 
     1959        self.assertEqual(response.content.count("<input"), 14) 
    19601960        self.assertContains(response, formats.localize(datetime.date.today())) 
    19611961        self.assertContains(response, 
    19621962            "<label>Awesomeness level:</label>")