예제 #1
0
def test_match_no_context():
    line = "No contexts"
    contexts = match_contexts(line)
    assert contexts == []
예제 #2
0
def test_match_context_not_project():
    line = "Has a @context and a +project"
    contexts = match_contexts(line)
    assert contexts == ['@context']
예제 #3
0
def test_match_one_context():
    line = "This has one @context"
    contexts = match_contexts(line)
    assert contexts == ['@context']
예제 #4
0
def test_match_multiple_contexts():
    line = "Has @many @contexts"
    contexts = match_contexts(line)
    assert contexts == ['@many', '@contexts']