@@ -0,0 +1,916 @@
+from django_webtest import WebTest%0Afrom django.core.urlresolvers import reverse%0Afrom django.test.utils import override_settings%0Afrom . import factory%0A%0A%0Aclass AdminTestCase(WebTest):%0A%0A    def setUp(self):%0A        super(AdminTestCase, self).setUp()%0A        self.user = factory.create_superuser()%0A        self.image = factory.create_cropped_image()%0A%0A    def test_jquery_included(self):%0A        edit_view = reverse('admin:example_image_change', args=%5Bself.image.pk%5D)%0A        response = self.app.get(edit_view, user=self.user)%0A        self.assertTrue('src=%22/static/js/jquery.min.js%22%3E' in response.content)%0A%0A    @override_settings(IMAGE_CROPPING_JQUERY_URL=None)%0A    def test_jquery_not_included(self):%0A        edit_view = reverse('admin:example_image_change', args=%5Bself.image.pk%5D)%0A        response = self.app.get(edit_view, user=self.user)%0A        self.assertFalse('src=%22/static/js/jquery.min.js%22%3E' in response.content)%0A

Test disabling inclusion of jQuery