def test_token_assign_text(): t = Token() t.text = 'test'
def test_token_assign_text(): t = Token('hello', b'world') t.text = 'test'
def test_token_assign_text(): with pytest.raises(AttributeError): t = Token('hello', u'world') t.text = 'test'