'Tests that a ModelAdmin without any actions still gets jQuery included in page'

def test_model_without_action_still_has_jquery(self):

    response = self.client.get(u'/test_admin/admin/admin_views/oldsubscriber/')
    self.assertEqual(response.context[u'action_form'], None)
    self.assertContains(response, u'jquery.min.js', msg_prefix=u'jQuery    missing    from    admin    pages    for    model    with    no    admin    actions')
