#NEWLINE# def test_correct_site( client , site ) : #NEWLINE# #INDENT# 'Tests that a resource gets sent to the correct site_id' #NEWLINE# n = Network ( client = client , site_id = site [ 'id' ] , cidr = '8.8.8.0/24' ) #NEWLINE# assert n . ensure ( ) #NEWLINE# assert ( n . existing_resource ( ) [ 'site_id' ] == client [ 'id' ] ) #NEWLINE# from pynsot.util import get_result #NEWLINE# manual = get_result ( client . sites ( site [ 'id' ] ) . networks ( '8.8.8.0/24' ) . get ( ) ) #NEWLINE# assert ( manual [ 'site_id' ] == site [ 'id' ] )