Added CR suggestion

This commit is contained in:
antoniocarlon
2018-09-14 10:14:59 +02:00
parent a57500c966
commit 4598d5ed7d
8 changed files with 42 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
from unittest import TestCase
from nose.tools import assert_raises
from nose.tools import assert_not_equal, assert_true
from nose.tools import assert_not_equal, assert_in
from ..helpers.integration_test_helper import IntegrationTestHelper
@@ -37,4 +37,4 @@ class TestPostalcodeFunctions(TestCase):
try:
IntegrationTestHelper.execute_query(self.sql_api_url, query)
except Exception as e:
assert_true(e.message[0] in ["Geocoding permission denied", "function cdb_geocode_postalcode_polygon(text, text) does not exist"])
assert_in(e.message[0], ["Geocoding permission denied", "function cdb_geocode_postalcode_polygon(text, text) does not exist"])