#NEWLINE# def test_create_igw( self ) : #NEWLINE# #INDENT# self . db_api . add_item . return_value = fakes . DB_IGW_2 #NEWLINE# resp = self . execute ( 'CreateInternetGateway' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( 'internetGateway' , resp ) #NEWLINE# igw = resp [ 'internetGateway' ] #NEWLINE# self . assertThat ( fakes . EC2_IGW_2 , matchers . DictMatches ( igw ) ) #NEWLINE# self . db_api . add_item . assert_called_with ( mock . ANY , 'igw' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )