#NEWLINE# def test_resource_context( self ) : #NEWLINE# #INDENT# c = resources . Command ( name = 'test' , command_string = 'test' ) #NEWLINE# context = c . _context ( ) #NEWLINE# self . assertEqual ( context . keys ( ) [ 0 ] , 'command' ) #NEWLINE# self . assertEqual ( context [ 'command' ] [ 'name' ] , c . name )