#NEWLINE# def test_list_subnets( self ) : #NEWLINE# #INDENT# network . add_subnet ( subnet = '10.145.89.0/24' , user = self . user_object ) #NEWLINE# list_subnet = network . list_subnets ( user = self . user_object ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'subnet' : '10.145.89.0/24' , #NEWLINE# 'id' : 1 , #NEWLINE# 'name' : '10.145.89.0/24' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertTrue ( all ( ( ( item in list_subnet [ 0 ] . items ( ) ) for item in expected . items ( ) ) ) )