示例#1
0
def test_append_ignores_empty_values():
    tag = Tag('type')
    tag.append(' \t ')
    assert tag.filled is False
示例#2
0
def test_filled_data_ignores_empties():
    tag = Tag('type')
    tag.append(' \t ')
    tag.append('human')
    assert tag.filled_data == ['human']
示例#3
0
def test_bool_truthy_when_present():
    tag = Tag('type')
    assert not tag
    tag.append('human')
    assert tag