#NEWLINE# def test_list_routes( self ) : #NEWLINE# #INDENT# self . parent . _run . return_value = 'default via 2001:db8::1 dev eth0 metric 100\n2001:db8::/64 dev eth0 proto kernel src 2001:db8::2\n' #NEWLINE# routes = self . route_cmd . table ( self . table ) . list_routes ( routes . ip_version ) #NEWLINE# self . assertEqual ( [ { #NEWLINE# #INDENT# 'cidr' : '::/0' , #NEWLINE# 'dev' : 'eth0' , #NEWLINE# 'metric' : '100' , #NEWLINE# 'table' : 14 , #NEWLINE# 'via' : '2001:db8::1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'cidr' : '2001:db8::/64' , #NEWLINE# 'dev' : 'eth0' , #NEWLINE# 'proto' : 'kernel' , #NEWLINE# 'src' : '2001:db8::2' , #NEWLINE# 'table' : 14 , #NEWLINE# #UNINDENT# } ] , routes )