'Test that a page can be copied via the admin'

def test_copy_page(self):

    page_a = create_page('page_a', 'nav_playground.html', 'en', published=True)
    page_a_a = create_page('page_a_a', 'nav_playground.html', 'en', parent=page_a, published=True, reverse_id='hello')
    create_page('page_a_a_a', 'nav_playground.html', 'en', parent=page_a_a, published=True)
    page_b = create_page('page_b', 'nav_playground.html', 'en', published=True)
    page_b_a = create_page('page_b_b', 'nav_playground.html', 'en', parent=page_b, published=True)
    count = Page.objects.drafts().count()
    superuser = self.get_superuser()
    with self.login_user_context(superuser):
        self.copy_page(page_a, page_b_a)
    self.assertEqual((Page.objects.drafts().count() - count), 3)
