def test_match_no_context(): line = "No contexts" contexts = match_contexts(line) assert contexts == []
def test_match_context_not_project(): line = "Has a @context and a +project" contexts = match_contexts(line) assert contexts == ['@context']
def test_match_one_context(): line = "This has one @context" contexts = match_contexts(line) assert contexts == ['@context']
def test_match_multiple_contexts(): line = "Has @many @contexts" contexts = match_contexts(line) assert contexts == ['@many', '@contexts']