#NEWLINE# def test_domain_parse( self ) : #NEWLINE# #INDENT# user = users . create_user ( username = 't1' , password = 'test' ) #NEWLINE# submission = self . create_submission ( user = user , url = 'http://google.com' ) #NEWLINE# assert ( 'google.com' == submission . get_domain_name ( ) ) #NEWLINE# user = users . create_user ( username = 't2' , password = 'test' ) #NEWLINE# submission = self . create_submission ( user = user , url = 'http://googlewww.com' ) #NEWLINE# assert ( 'googlewww.com' == submission . get_domain_name ( ) ) #NEWLINE# user = users . create_user ( username = 't3' , password = 'test' ) #NEWLINE# submission = self . create_submission ( user = user , url = 'https://google.com' ) #NEWLINE# assert ( 'google.com' == submission . get_domain_name ( ) )