def test_scenarios_parsing():
 feature = Feature.from_string(FEATURE15)
 scenarios_and_tags = [(s.name, s.tags) for s in feature.scenarios]
 scenarios_and_tags.should.equal([('Bootstraping Redis role', []), ('Restart scalarizr', []), ('Rebundle server', [u'rebundle']), ('Use new role', [u'rebundle']), ('Restart scalarizr after bundling', [u'rebundle']), ('Bundling data', []), ('Modifying data', []), ('Reboot server', []), ('Backuping data on Master', []), ('Setup replication', []), ('Restart scalarizr in slave', []), ('Slave force termination', []), ('Slave delete EBS', [u'ec2']), ('Setup replication for EBS test', [u'ec2']), ('Writing on Master, reading on Slave', []), ('Slave -> Master promotion', []), ('Restart farm', [u'restart_farm'])])

def test_scenarios_parsing ( ) : feature = Feature . from_string ( FEATURE15 ) scenarios_and_tags = [ ( s . name , s . tags ) for s in feature . scenarios ] scenarios_and_tags . should . equal ( [ ( 'Bootstraping Redis role' , [ ] ) , ( 'Restart scalarizr' , [ ] ) , ( 'Rebundle server' , [ u'rebundle' ] ) , ( 'Use new role' , [ u'rebundle' ] ) , ( 'Restart scalarizr after bundling' , [ u'rebundle' ] ) , ( 'Bundling data' , [ ] ) , ( 'Modifying data' , [ ] ) , ( 'Reboot server' , [ ] ) , ( 'Backuping data on Master' , [ ] ) , ( 'Setup replication' , [ ] ) , ( 'Restart scalarizr in slave' , [ ] ) , ( 'Slave force termination' , [ ] ) , ( 'Slave delete EBS' , [ u'ec2' ] ) , ( 'Setup replication for EBS test' , [ u'ec2' ] ) , ( 'Writing on Master, reading on Slave' , [ ] ) , ( 'Slave -> Master promotion' , [ ] ) , ( 'Restart farm' , [ u'restart_farm' ] ) ] )
tags are parsed correctly .