#NEWLINE# def it_can_add_a_new_style( self , add_fixture ) : #NEWLINE# #INDENT# ( styles , name , style_type , builtin ) = add_fixture [ : 4 ] #NEWLINE# ( name_ , StyleFactory_ , style_elm_ , style_ ) = add_fixture [ 4 : ] #NEWLINE# style = styles . add_style ( name , style_type , builtin ) #NEWLINE# styles . _element . add_style_of_type . assert_called_once_with ( name_ , style_type , builtin ) #NEWLINE# StyleFactory_ . assert_called_once_with ( style_elm_ ) #NEWLINE# assert ( style is style_ )