#NEWLINE# def test_get_kw_completion_list_structure_with_object( self ) : #NEWLINE# #INDENT# object_name = 'test_a' #NEWLINE# prefix = 'test' #NEWLINE# kw = 'Test A Keyword' #NEWLINE# kw_tuple = get_kw_completion_list ( self . test_a_index , prefix , RF_CELL , object_name , False ) #NEWLINE# expected = [ ( '{0}\t{1}' . format ( kw , object_name ) , '{0}' . format ( kw ) ) ] #NEWLINE# self . assertEqual ( kw_tuple , expected ) #NEWLINE# object_name = 'LibNoClass' #NEWLINE# prefix = 'librarykeyword' #NEWLINE# kw1 = 'Library Keyword 1' #NEWLINE# kw2 = 'Library Keyword 2' #NEWLINE# kw_tuple = get_kw_completion_list ( self . test_a_index , prefix , RF_CELL , object_name , False ) #NEWLINE# expected = [ ( '{0}\t{1}' . format ( kw1 , object_name ) , '{0}{1}arg1' . format ( kw1 , ( '\n...' + RF_CELL ) ) ) , ( '{0}\t{1}' . format ( kw2 , object_name ) , '{0}{1}arg1{1}arg2' . format ( kw2 , ( '\n...' + RF_CELL ) ) ) ] #NEWLINE# self . assertEqual ( kw_tuple , expected )