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