#NEWLINE# def test_items( self ) : #NEWLINE# #INDENT# ck = self . extension . add_checklist ( ) #NEWLINE# self . assertEqual ( self . total_items , 0 ) #NEWLINE# ck . add_item_from_str ( 'test' ) #NEWLINE# self . assertEqual ( ck . total_items , 1 ) #NEWLINE# ck . add_item_from_str ( 'test2' ) #NEWLINE# self . assertEqual ( ck . total_items , 2 ) #NEWLINE# ck . add_item_from_str ( 'test3' ) #NEWLINE# self . assertEqual ( ck . total_items , 3 ) #NEWLINE# ck . delete_index ( 1 ) #NEWLINE# self . assertEqual ( ck . total_items , 2 ) #NEWLINE# ck . set_index ( 1 ) #NEWLINE# self . assertEqual ( ck . data . index , 1 ) #NEWLINE# self . assertEqual ( ck . items [ 0 ] ( ) . get_title ( ) , 'test' ) #NEWLINE# self . assertEqual ( ck . items [ 1 ] ( ) . get_title ( ) , 'test3' )