コード例 #1
0
def test_token_assign_text():
    t = Token()
    t.text = 'test'
コード例 #2
0
def test_token_assign_text():
    t = Token('hello', b'world')
    t.text = 'test'
コード例 #3
0
def test_token_assign_text():
    t = Token()
    t.text = 'test'
コード例 #4
0
def test_token_assign_text():
    t = Token('hello', b'world')
    t.text = 'test'
コード例 #5
0
def test_token_assign_text():
    with pytest.raises(AttributeError):
        t = Token('hello', u'world')
        t.text = 'test'