Esempio n. 1
0
def test_merge_two():
    req = merge_requirements(
        'HasPie == true',
        'HasCake == false',
    )

    assert req == '(HasPie == true) && (HasCake == false)'
Esempio n. 2
0
def test_merge_with_none():
    req = merge_requirements(
        'HasPie == true',
        None,
    )

    assert req == '(HasPie == true)'
Esempio n. 3
0
def test_merge_with_none():
    req = merge_requirements(
        "HasPie == true",
        None,
    )

    assert req == "(HasPie == true)"
Esempio n. 4
0
def test_merge_two():
    req = merge_requirements(
        "HasPie == true",
        "HasCake == false",
    )

    assert req == "(HasPie == true) && (HasCake == false)"
Esempio n. 5
0
def test_merge_three():
    req = merge_requirements(
        'HasPie == true',
        'HasCake == false',
        'IsHappy == true',
    )

    assert req == '(HasPie == true) && (HasCake == false) && (IsHappy == true)'
Esempio n. 6
0
def test_merge_three():
    req = merge_requirements(
        "HasPie == true",
        "HasCake == false",
        "IsHappy == true",
    )

    assert req == "(HasPie == true) && (HasCake == false) && (IsHappy == true)"
Esempio n. 7
0
def test_merge_nothing():
    req = merge_requirements()

    assert req is None