#NEWLINE# def test_get_system_by_reverse_dns_zone( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/api/v2/keyvalue/?key_type=system_by_reverse_dns_zone&zone=phx1-32.8.10.in-addr.arpa' , follow = True ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# system_list = json . loads ( resp . content ) #NEWLINE# self . assertEqual ( len ( system_list ) , 2 ) #NEWLINE# self . assertEqual ( system_list [ 0 ] [ 'nic.0.ipv4_address.0' ] , '10.99.32.1' ) #NEWLINE# self . assertEqual ( system_list [ 0 ] [ 'hostname' ] , 'fake-hostname2' ) #NEWLINE# self . assertEqual ( system_list [ 0 ] [ 'nic.1.ipv4_address.0' ] , '10.99.32.2' ) #NEWLINE# self . assertEqual ( system_list [ 1 ] [ 'nic.0.ipv4_address.0' ] , '10.99.32.3' ) #NEWLINE# self . assertEqual ( self [ 1 ] [ 'hostname' ] , 'fake-hostname1' )