def test_wcp_implies_caseinsensitive_lists(wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case insensitive, list-based permission, retrns True and the opposite False """ p1 = WildcardPermission(wildcard_string=wildcardstring1) p2 = WildcardPermission(wildcard_string=wildcardstring2) assert p1.implies(p2) and not p2.implies(p1)
def test_wcp_implies_caseinsensitive_lists( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case insensitive, list-based permission, retrns True and the opposite False """ p1 = WildcardPermission(wildcard_string=wildcardstring1) p2 = WildcardPermission(wildcard_string=wildcardstring2) assert p1.implies(p2) and not p2.implies(p1)
def test_wcp_implies_caseinsensitive_returns_true( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case insensitive, single-name permission, returns True """ p1 = WildcardPermission(wildcardstring1) p2 = WildcardPermission(wildcardstring2) assert p1.implies(p2)
def test_wcp_implies_caseinsensitive_returns_false( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case insensitive, single-name permission, returns False """ p1 = WildcardPermission(wildcardstring1) p2 = WildcardPermission(wildcardstring2) assert not p1.implies(p2)
def test_wcp_implies_caseinsensitive_wildcards_false( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case insensitive, wildcard-based permission, retrns False """ p1 = WildcardPermission(wildcard_string=wildcardstring1) p2 = WildcardPermission(wildcard_string=wildcardstring2) assert not p1.implies(p2)
def test_wcp_implies_casesensitive_returns_false( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case sensitive, single-name permission, returns False """ p1 = WildcardPermission(wildcard_string=wildcardstring1, case_sensitive=True) p2 = WildcardPermission(wildcard_string=wildcardstring2, case_sensitive=True) assert not p1.implies(p2)
def test_wcp_implies_casesensitive_returns_true( wildcardstring1, wildcardstring2): """ unit tested: implies test case: Case sensitive, single-name permission,returns True """ p1 = WildcardPermission(wildcard_string=wildcardstring1, case_sensitive=True) p2 = WildcardPermission(wildcard_string=wildcardstring2, case_sensitive=True) assert p1.implies(p2)