Skip to content
Snippets Groups Projects
Commit aee33863 authored by Rémy Léone's avatar Rémy Léone
Browse files

fixup: Simplify_chained_comparaison

parent a6a0cb43
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ def testE2E( self ): ...@@ -24,7 +24,7 @@ def testE2E( self ):
# check ping results # check ping results
p.expect( "Results: (\d+)% dropped", timeout=120 ) p.expect( "Results: (\d+)% dropped", timeout=120 )
loss = int( p.match.group( 1 ) ) loss = int( p.match.group( 1 ) )
self.assertTrue( loss > 0 and loss < 100 ) self.assertTrue(0 < loss < 100)
# check iperf results # check iperf results
p.expect( "Results: \['([\d\.]+) .bits/sec", timeout=480 ) p.expect( "Results: \['([\d\.]+) .bits/sec", timeout=480 )
bw = float( p.match.group( 1 ) ) bw = float( p.match.group( 1 ) )
...@@ -46,7 +46,7 @@ def testTopo( self ): ...@@ -46,7 +46,7 @@ def testTopo( self ):
m = re.search( expectStr, output ) m = re.search( expectStr, output )
loss = int( m.group( 3 ) ) loss = int( m.group( 3 ) )
net.stop() net.stop()
self.assertTrue( loss > 0 and loss < 100 ) self.assertTrue(0 < loss < 100)
if __name__ == '__main__': if __name__ == '__main__':
setLogLevel( 'warning' ) 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