Skip to content

Commit

Permalink
refs #3 fixed coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
tell-k committed Nov 20, 2015
1 parent 088672d commit 97b30ff
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tests/test_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,14 @@ def test_it_for_escape(self):
def test_it_for_escape__with_range_values(self):
from csquery.structured import and_

assert "(and release_date:[\'2000-01-01T00:00:00Z\', \'2010-01-01T00:00:00Z\'})" == self._call_fut(
and_(release_date="['2000-01-01T00:00:00Z', '2010-01-01T00:00:00Z'}")
)
assert "(and (and release_date:[\'2000-01-01T00:00:00Z\', \'2010-01-01T00:00:00Z\'}))" == self._call_fut(
and_(and_(release_date="['2000-01-01T00:00:00Z', '2010-01-01T00:00:00Z'}"))
)

assert "(and (and release_date:[\'2000-01-01T00:00:00Z\', \'2010-01-01T00:00:00Z\'}))" == self._call_fut(
and_(and_(release_date="['2000-01-01T00:00:00Z', '2010-01-01T00:00:00Z'}"))
)
range_value = "['2000-01-01T00:00:00Z', '2010-01-01T00:00:00Z'}"
expected = "(and release_date:"
expected += "[\'2000-01-01T00:00:00Z\', \'2010-01-01T00:00:00Z\'})"
assert expected == self._call_fut(and_(release_date=range_value))

expected = "(and (and release_date:"
expected += "[\'2000-01-01T00:00:00Z\', \'2010-01-01T00:00:00Z\'}))"
assert expected == self._call_fut(and_(and_(release_date=range_value)))

assert "(and _id:['tt1000000','tt1005000'])" == self._call_fut(
and_(_id="['tt1000000','tt1005000']")
Expand Down

0 comments on commit 97b30ff

Please sign in to comment.