Slug field size update reflected in tests.
This commit is contained in:
parent
674c0813b8
commit
4ae9d2cc81
1 changed files with 2 additions and 2 deletions
|
@ -60,12 +60,12 @@ class AdminTest(BaseTest):
|
|||
|
||||
# Add view only contains the apphook selection widget
|
||||
response = post_admin.add_view(request)
|
||||
self.assertNotContains(response, '<input id="id_slug" maxlength="50" name="slug" type="text"')
|
||||
self.assertNotContains(response, '<input id="id_slug" maxlength="255" name="slug" type="text"')
|
||||
self.assertContains(response, '<option value="%s">Blog / sample_app</option>' % self.app_config_1.pk)
|
||||
|
||||
# Changeview is 'normal'
|
||||
response = post_admin.change_view(request, str(post.pk))
|
||||
self.assertContains(response, '<input id="id_slug" maxlength="50" name="slug" type="text" value="first-post" />')
|
||||
self.assertContains(response, '<input id="id_slug" maxlength="255" name="slug" type="text" value="first-post" />')
|
||||
self.assertContains(response, '<option value="%s" selected="selected">Blog / sample_app</option>' % self.app_config_1.pk)
|
||||
|
||||
# Test for publish view
|
||||
|
|
Loading…
Reference in a new issue