Fix underscore method test

This commit is contained in:
ines 2017-10-11 13:34:19 +02:00
parent c6ae49e8bf
commit 51519251c2

View File

@ -46,7 +46,7 @@ def test_span_underscore_getter_setter():
def test_token_underscore_method():
token = Mock(doc=Mock(), idx=7, say_cheese=lambda: 'cheese')
token = Mock(doc=Mock(), idx=7, say_cheese=lambda token: 'cheese')
Underscore.token_extensions['hello'] = (None, token.say_cheese,
None, None)
token._ = Underscore(Underscore.token_extensions, token, start=token.idx)