#NEWLINE# @ with_model #NEWLINE# def test_reaction_pattern_add_to_none( ) : #NEWLINE# #INDENT# 'Ensure that ReactionPattern + None returns a ReactionPattern.' #NEWLINE# Monomer ( 'A' , [ 's' ] ) #NEWLINE# cp = ( A ( s = 1 ) % A ( s = 1 ) ) #NEWLINE# rp = ( cp + cp ) #NEWLINE# ok_ ( isinstance ( ( cp + None ) , ReactionPattern ) , 'ReactionPattern + None did not return a ReactionPattern.' )