예제 #1
0
def test_parser_repeat_variable():
    assert secrets.parse("KEY=xxx,KEY=value") == SINGLE_RESULT
예제 #2
0
def test_parser_invalid_skip():
    assert secrets.parse("KEY=value,INVALID") == SINGLE_RESULT
예제 #3
0
def test_parser_multi(input_string):

    assert secrets.parse(input_string) == MULTI_RESULT
예제 #4
0
def test_parser_invalid_pair():

    assert secrets.parse("INVALID") == {}
예제 #5
0
def test_parser_single(input_string):

    assert secrets.parse(input_string) == SINGLE_RESULT