2014-07-05 18:51:42 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2014-08-30 18:36:06 +00:00
|
|
|
from spacy.en import EN
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_neq():
|
2014-10-14 04:47:06 +00:00
|
|
|
addr = EN.lexicon.lookup('Hello')
|
2014-10-23 13:59:17 +00:00
|
|
|
assert EN.lexicon.lookup('bye')['id'] != addr['id']
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_eq():
|
2014-10-14 04:47:06 +00:00
|
|
|
addr = EN.lexicon.lookup('Hello')
|
2014-10-23 13:59:17 +00:00
|
|
|
assert EN.lexicon.lookup('Hello')['id'] == addr['id']
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_case_neq():
|
2014-10-14 04:47:06 +00:00
|
|
|
addr = EN.lexicon.lookup('Hello')
|
2014-10-23 13:59:17 +00:00
|
|
|
assert EN.lexicon.lookup('hello')['id'] != addr['id']
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_punct_neq():
|
2014-10-14 04:47:06 +00:00
|
|
|
addr = EN.lexicon.lookup('Hello')
|
2014-10-23 13:59:17 +00:00
|
|
|
assert EN.lexicon.lookup('Hello,')['id'] != addr['id']
|