'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('/test_admin/admin/admin_views/oldsubscriber/')
    self.assertEquals(response.context['action_form'], None)
    self.assert_(('jquery.min.js' in response.content), 'jQuery    missing    from    admin    pages    for    model    with    no    admin    actions')
