Exemplo n.º 1
0
def test_rex_match_empty():
    rm = RexMatch()
    assert rm['a'] is None
    assert rm['b'] is None
    assert str(rm) == ''
    assert rm.__unicode__() == u''
Exemplo n.º 2
0
def test_rex_match_empty():
    rm = RexMatch()
    assert rm['a'] is None
    assert rm['b'] is None
    assert str(rm) == ''
    assert rm.__unicode__() == u''
Exemplo n.º 3
0
def test_rex_match():
    rm = RexMatch(((0, 'some match'), ('a', 1), ('b', 2)))
    assert rm['a'] == 1
    assert rm['b'] == 2
    assert str(rm) == 'some match'
    assert rm.__unicode__() == u'some match'
Exemplo n.º 4
0
def test_rex_match():
    rm = RexMatch(((0, 'some match'), ('a', 1), ('b', 2)))
    assert rm['a'] == 1
    assert rm['b'] == 2
    assert str(rm) == 'some match'
    assert rm.__unicode__() == u'some match'