'Ensure we can sort on a list_display field that is a ModelAdmin
method in reverse order (i.e. admin_order_field uses the \'-\' prefix)
(column 6 is \'model_year_reverse\' in ArticleAdmin)'

def test_change_list_sorting_model_admin_reverse(self):

    response = self.client.get(reverse('admin:admin_views_article_changelist'), {'o': '6'})
    self.assertContentBefore(response, '2009', '2008', 'Results    of    sorting    on    ModelAdmin    method    are    out    of    order.')
    self.assertContentBefore(response, '2008', '2000', 'Results    of    sorting    on    ModelAdmin    method    are    out    of    order.')
    response = self.client.get(reverse('admin:admin_views_article_changelist'), {'o': '-6'})
    self.assertContentBefore(response, '2000', '2008', 'Results    of    sorting    on    ModelAdmin    method    are    out    of    order.')
    self.assertContentBefore(response, '2008', '2009', 'Results    of    sorting    on    ModelAdmin    method    are    out    of    order.')
