#NEWLINE# def test_del_gateway_cannot_find_device( self ) : #NEWLINE# #INDENT# self . parent . _as_root . side_effect = RuntimeError ( 'Cannot find device' ) #NEWLINE# exc = self . assertRaises ( exceptions . DeviceNotFoundError , self . route_cmd . delete_gateway , self . gateway , table = exc . table ) #NEWLINE# self . assertIn ( self . parent . name , str ( exc ) )