<s> from __future__ import division , print_function , unicode_literals <EOL> def pytest_generate_tests ( metafunc ) : <EOL> param_names = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> values = [ ( <NUM_LIT:0.0> , <NUM_LIT:0.0> ) , <EOL> ( <NUM_LIT:0.0> , <NUM_LIT> ) , <EOL> ( <NUM_LIT> , <NUM_LIT:0.0> ) , <EOL> ( <NUM_LIT> , <NUM_LIT> ) , <EOL> ( <NUM_LIT> , <NUM_LIT> ) , <EOL> ( <NUM_LIT> , <NUM_LIT> ) <EOL> ] <EOL> scenarios = { } <EOL> for v in values : <EOL> name = '<STR_LIT:U+0020>' . join ( [ '<STR_LIT:%s>' % e for e in v ] ) <EOL> scenarios [ name ] = dict ( zip ( param_names , v ) ) <EOL> for k in scenarios : <EOL> metafunc . addcall ( id = k , funcargs = scenarios [ k ] ) <EOL> class TestSampleWithParameters : <EOL> def test_demo ( self , duration1 , duration2 ) : <EOL> assert isinstance ( duration1 , float ) <EOL> def test2_demo ( self , duration1 , duration2 ) : <EOL> assert isinstance ( duration2 , float ) <EOL> def test3_demo ( self , duration1 , duration2 ) : <EOL> if duration1 > <NUM_LIT> : <EOL> return <EOL> assert duration1 >= <NUM_LIT:0.0> </s>
