diff --git a/lockdown/templates/lockdown/base.html b/lockdown/templates/lockdown/base.html index 6543f43..aea2c54 100644 --- a/lockdown/templates/lockdown/base.html +++ b/lockdown/templates/lockdown/base.html @@ -3,7 +3,6 @@
This is not yet available to the public.
{% if form %} - - {% endif %} {% endblock %} - diff --git a/lockdown/tests/templates/lockdown/form.html b/lockdown/tests/templates/lockdown/form.html deleted file mode 100644 index 97f529e..0000000 --- a/lockdown/tests/templates/lockdown/form.html +++ /dev/null @@ -1,21 +0,0 @@ - - -This is not yet available to the public.
- - {% if form %} - - - - {% endif %} - - - diff --git a/lockdown/tests/tests.py b/lockdown/tests/tests.py index 380b498..6697548 100644 --- a/lockdown/tests/tests.py +++ b/lockdown/tests/tests.py @@ -306,15 +306,10 @@ def test_using_form(self): Unauthorized access to a to locked page should show the auth form """ url = '/auth/user/locked/view/' - - template_dirs = [os.path.join(os.path.dirname( - os.path.realpath(__file__)), 'templates')] - with self.settings(TEMPLATE_DIRS=template_dirs): - response = self.client.get(url) - + response = self.client.get(url) self.assertTemplateUsed(response, 'lockdown/form.html') - form = response.context.get('form') + form = response.context['form'] self.failUnless(isinstance(form, AuthForm)) def add_user(self, username='test', password='pw', **kwargs):