2014-07-05 18:51:42 +00:00
|
|
|
from __future__ import unicode_literals
|
2014-12-23 00:40:32 +00:00
|
|
|
import pytest
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
2015-06-07 16:02:24 +00:00
|
|
|
def test_neq(en_vocab):
|
|
|
|
addr = en_vocab['Hello']
|
|
|
|
assert en_vocab['bye'].orth != addr.orth
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
2015-06-07 16:02:24 +00:00
|
|
|
def test_eq(en_vocab):
|
|
|
|
addr = en_vocab['Hello']
|
|
|
|
assert en_vocab['Hello'].orth == addr.orth
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
2015-06-07 16:02:24 +00:00
|
|
|
def test_case_neq(en_vocab):
|
|
|
|
addr = en_vocab['Hello']
|
|
|
|
assert en_vocab['hello'].orth != addr.orth
|
2014-07-05 18:51:42 +00:00
|
|
|
|
|
|
|
|
2015-06-07 16:02:24 +00:00
|
|
|
def test_punct_neq(en_vocab):
|
|
|
|
addr = en_vocab['Hello']
|
|
|
|
assert en_vocab['Hello,'].orth != addr.orth
|
2014-07-05 18:51:42 +00:00
|
|
|
|
2014-12-23 00:40:32 +00:00
|
|
|
|
2015-06-07 16:02:24 +00:00
|
|
|
def test_shape_attr(en_vocab):
|
|
|
|
example = en_vocab['example']
|
2015-01-22 15:08:25 +00:00
|
|
|
assert example.orth != example.shape
|