mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
modified assert statements
This commit is contained in:
parent
18ee7cff5c
commit
91efaea497
1 changed files with 4 additions and 4 deletions
|
@ -368,19 +368,19 @@ def test__get_flags():
|
|||
"""
|
||||
flags = 10
|
||||
ret = filemod._get_flags(flags)
|
||||
assert isinstance(ret, re.RegexFlag)
|
||||
assert ret == re.IGNORECASE | re.MULTILINE
|
||||
|
||||
flags = "MULTILINE"
|
||||
ret = filemod._get_flags(flags)
|
||||
assert isinstance(ret, re.RegexFlag)
|
||||
assert ret == re.MULTILINE
|
||||
|
||||
flags = ["IGNORECASE", "MULTILINE"]
|
||||
ret = filemod._get_flags(flags)
|
||||
assert isinstance(ret, re.RegexFlag)
|
||||
assert ret == re.IGNORECASE | re.MULTILINE
|
||||
|
||||
flags = re.IGNORECASE | re.MULTILINE
|
||||
ret = filemod._get_flags(flags)
|
||||
assert isinstance(ret, re.RegexFlag)
|
||||
assert ret == re.IGNORECASE | re.MULTILINE
|
||||
|
||||
|
||||
def test_patch():
|
||||
|
|
Loading…
Add table
Reference in a new issue