#NEWLINE# def test_plan_invalid_node( self ) : #NEWLINE# #INDENT# '\n        Tests for forwards/backwards_plan of nonexistent node.\n        ' #NEWLINE# graph = MigrationGraph ( ) #NEWLINE# message = "Node ('app_b', '0001') not a valid node" #NEWLINE# with self . assertRaisesMessage ( NodeNotFoundError , self ) : #NEWLINE# #INDENT# graph . forwards_plan ( ( 'app_b' , '0001' ) ) #NEWLINE# #UNINDENT# with self . assertRaisesMessage ( NodeNotFoundError , message ) : #NEWLINE# #INDENT# graph . backwards_plan ( ( 'app_b' , '0001' ) )