Skip to content
Snippets Groups Projects
Commit f2942a7f authored by lantz's avatar lantz
Browse files

Merge pull request #253 from sieben/Simplify_chained_comparaison

OK...
parents ae367d36 aee33863
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def testE2E( self ):
# check ping results
p.expect( "Results: (\d+)% dropped", timeout=120 )
loss = int( p.match.group( 1 ) )
self.assertTrue( loss > 0 and loss < 100 )
self.assertTrue(0 < loss < 100)
# check iperf results
p.expect( "Results: \['([\d\.]+) .bits/sec", timeout=480 )
bw = float( p.match.group( 1 ) )
......@@ -46,7 +46,7 @@ def testTopo( self ):
m = re.search( expectStr, output )
loss = int( m.group( 3 ) )
net.stop()
self.assertTrue( loss > 0 and loss < 100 )
self.assertTrue(0 < loss < 100)
if __name__ == '__main__':
setLogLevel( 'warning' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment