2014-07-05 22:51:42 +04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2014-08-30 22:36:06 +04:00
|
|
|
from spacy.en import EN
|
2014-07-05 22:51:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
def test_neq():
|
2014-10-30 10:15:30 +03:00
|
|
|
addr = EN.lexicon['Hello']
|
|
|
|
assert EN.lexicon['bye']['sic'] != addr['sic']
|
2014-07-05 22:51:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
def test_eq():
|
2014-10-30 10:15:30 +03:00
|
|
|
addr = EN.lexicon['Hello']
|
|
|
|
assert EN.lexicon['Hello']['sic'] == addr['sic']
|
2014-07-05 22:51:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
def test_case_neq():
|
2014-10-30 10:15:30 +03:00
|
|
|
addr = EN.lexicon['Hello']
|
|
|
|
assert EN.lexicon['hello']['sic'] != addr['sic']
|
2014-07-05 22:51:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
def test_punct_neq():
|
2014-10-30 10:15:30 +03:00
|
|
|
addr = EN.lexicon['Hello']
|
|
|
|
assert EN.lexicon['Hello,']['sic'] != addr['sic']
|