Skip to content

Commit

Permalink
refs #4 fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tell-k committed Nov 25, 2015
1 parent d489530 commit 32577e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_it_for_escape(self):
assert r"actors:'Alec\'Guinness'" == self._call_fut(
field("Alec'Guinness", 'actors')
)

assert "'ジャン=ピエール・オーモン'" == self._call_fut(
'ジャン=ピエール・オーモン'
)
Expand Down Expand Up @@ -278,7 +278,7 @@ def test_it(self):
or_(
term('star', field='title', boost=2),
term('star', field='plot'),

),
boost='plot'
)
Expand Down Expand Up @@ -442,10 +442,8 @@ def _call_fut(self, *args, **kwargs):
def test_it(self):
actual = self._call_fut('star')
assert "(term 'star')" == actual()

actual = self._call_fut(2000)
assert '(term 2000)' == actual()

actual = self._call_fut(2000, field='year', boost=2)
expected = '(term field=year boost=2 2000)'
assert expected == actual()

0 comments on commit 32577e7

Please sign in to comment.