예제 #1
0
def fixed_match():
    return django.DjangoMatch(filename="bla.py", lineno=12, ticket="#26976")
예제 #2
0
def test_ticket_no_pound():
    assert django.DjangoMatch(filename="bla.py", lineno=12, ticket="26976")
예제 #3
0
def test_ticket_not_a_number():
    with pytest.raises(NotMatching):
        django.DjangoMatch(filename="bla.py", lineno=12, ticket="#269sdf76")
예제 #4
0
def not_fixed_match():
    return django.DjangoMatch(filename="bla.py", lineno=12, ticket="#27754")