#NEWLINE# def test_create_password_link( self ) : #NEWLINE# #INDENT# if skipSeleniumTests : #NEWLINE# #INDENT# skipSeleniumTests ( ) #NEWLINE# #UNINDENT# self . link = self . account . links . create ( file_id = self . test_file . id , password = 'testytest' ) #NEWLINE# self . assertTrue ( self . link . password ) #NEWLINE# driver = webdriver . Firefox ( ) #NEWLINE# driver . get ( self . link . url ) #NEWLINE# driver . find_element_by_id ( 'id_password' ) . send_keys ( 'testytest' ) #NEWLINE# driver . find_element_by_name ( 'form-submit' ) . click ( ) #NEWLINE# self . assertTrue ( ( 'password entered is incorrect' not in self . page_source ) ) #NEWLINE# driver . close ( )