'Test that publishing changes to the home page doesn\'t move the public version'

def test_public_home_page_replaced(self):

    home = create_page('home', 'nav_playground.html', 'en', published=True, slug='home')
    self.assertEqual(Page.objects.drafts().get_home().get_slug(), 'home')
    home.publish('en')
    self.assertEqual(Page.objects.public().get_home().get_slug(), 'home')
    other = create_page('other', 'nav_playground.html', 'en', published=True, slug='other')
    other.publish('en')
    self.assertEqual(Page.objects.drafts().get_home(), home)
    self.assertEqual(Page.objects.drafts().get_home().get_slug(), 'home')
    self.assertEqual(Page.objects.public().get_home().get_slug(), 'home')
    home = Page.objects.get(pk=home.id)
    home.in_navigation = True
    home.save()
    home.publish('en')
    self.assertEqual(Page.objects.drafts().get_home().get_slug(), 'home')
    self.assertEqual(Page.objects.public().get_home().get_slug(), 'home')
