#NEWLINE# def test_slug_collisions_api_2( self ) : #NEWLINE# #INDENT# ' Checks for slug collisions on root (not home) page and a home page child - uses API to create pages\n        ' #NEWLINE# page1 = create_page ( 'test page 1' , 'nav_playground.html' , 'en' , published = True ) #NEWLINE# page1_1 = create_page ( 'test page 1_1' , 'nav_playground.html' , 'en' , published = True , parent = page1 , slug = 'foo' ) #NEWLINE# page2 = create_page ( 'test page 1_1' , 'nav_playground.html' , 'en' , published = True , slug = 'foo' ) #NEWLINE# self . assertFalse ( is_valid_page_slug ( page1_1 , page1_1 . parent , 'en' , page1_1 . get_slug ( 'en' ) , page1_1 . site ) ) #NEWLINE# self . assertFalse ( is_valid_page_slug ( page2 , page2 . parent , 'en' , page2 . get_slug ( 'en' ) , page2 . site ) )