'Checks for slug collisions on sibling pages - uses API to create pages'

def test_slug_collisions_api_1(self):

    page1 = create_page('test    page    1', 'nav_playground.html', 'en', published=True)
    page1_1 = create_page('test    page    1_1', 'nav_playground.html', 'en', published=True, parent=page1, slug='foo')
    page1_2 = create_page('test    page    1_2', 'nav_playground.html', 'en', published=True, parent=page1, slug='foo')
    self.assertFalse(is_valid_page_slug(page1_1, page1_1.parent, 'en', page1_1.get_slug('en'), page1_1.site))
    self.assertFalse(is_valid_page_slug(page1_2, page1_2.parent, 'en', page1_2.get_slug('en'), page1_2.site))
