#NEWLINE# def test_create_port_no_mandatory_field_address( self ) : #NEWLINE# #INDENT# pdict = post_get_test_port ( ) #NEWLINE# del pdict [ 'address' ] #NEWLINE# response = self . post_json ( '/ports' , pdict , expect_errors = True ) #NEWLINE# self . assertEqual ( http_client . BAD_REQUEST , response . status_int ) #NEWLINE# self . assertEqual ( 'application/json' , response . content_type ) #NEWLINE# self . assertTrue ( response . json [ 'error_message' ] )