Skip to content

Commit

Permalink
Fixing asserts for py2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
diogobaeder committed May 27, 2012
1 parent 0a91d9f commit 142341b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yql/tests/test_requests_responses.py
Expand Up @@ -108,13 +108,13 @@ def test_env_for_public_yql(self):
query = 'SELECT * from foo'
y = TestPublic(httplib2_inst=httplib2.Http())
uri = y.execute(query, env="http://foo.com")
self.assertGreater(uri.find(urlencode({"env":"http://foo.com"})), -1)
self.assertTrue(uri.find(urlencode({"env":"http://foo.com"})) > -1)

def test_name_param_inserted_for_public_yql(self):
query = 'SELECT * from foo WHERE dog=@dog'
y = TestPublic(httplib2_inst=httplib2.Http())
uri = y.execute(query, {"dog": "fifi"})
self.assertGreater(uri.find('dog=fifi'), -1)
self.assertTrue(uri.find('dog=fifi') >-1)


class PublicStubbedFromFileTest(StubbedHttpTestCase):
Expand Down

0 comments on commit 142341b

Please sign in to comment.