Merge pull request #1042 from p-l-/fix-tests

Python 3: fix an often-failing test
This commit is contained in:
Guillaume Valadon 2018-01-13 15:49:44 +01:00 committed by GitHub
commit c7f32cf152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -9206,10 +9206,12 @@ def test_summary():
result_summary = cmco.get_output()
assert(len(result_summary.split('\n')) == 10)
assert(any(
"IP / TCP 192.168.0.254:ftp_data > 192.168.0.1:%s S / Raw ==> "
"IP / TCP 192.168.0.254:%s > 192.168.0.1:%s S / Raw ==> "
"IP / ICMP 192.168.0.9 > 192.168.0.254 time-exceeded "
"ttl-zero-during-transit / IPerror / TCPerror / "
"Raw" % http in result_summary for http in ['http', 'www_http', 'www']
"Raw" % (ftp_data, http) in result_summary
for ftp_data in ['21', 'ftp_data']
for http in ['80', 'http', 'www_http', 'www']
))
test_summary()