<s> """<STR_LIT>""" <EOL> from pytest_bdd import scenario <EOL> def test_tags ( request ) : <EOL> """<STR_LIT>""" <EOL> @ scenario ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ) <EOL> def test ( ) : <EOL> pass <EOL> assert test . __scenario__ . tags == set ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> assert test . __scenario__ . feature . tags == set ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> assert getattr ( test , '<STR_LIT>' ) <EOL> assert getattr ( test , '<STR_LIT>' ) <EOL> assert getattr ( test , '<STR_LIT>' ) <EOL> assert getattr ( test , '<STR_LIT>' ) <EOL> test ( request ) <EOL> def test_tags_selector ( testdir ) : <EOL> """<STR_LIT>""" <EOL> testdir . makefile ( '<STR_LIT>' , test = """<STR_LIT>""" ) <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) . parseoutcomes ( ) <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) . parseoutcomes ( ) <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) . parseoutcomes ( ) <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:2> <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) . parseoutcomes ( ) <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:2> <EOL> def test_tags_after_background_issue_160 ( testdir ) : <EOL> """<STR_LIT>""" <EOL> testdir . makefile ( '<STR_LIT>' , test = """<STR_LIT>""" ) <EOL> testdir . makepyfile ( """<STR_LIT>""" ) <EOL> result = testdir . runpytest ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) . parseoutcomes ( ) <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> <EOL> assert result [ '<STR_LIT>' ] == <NUM_LIT:1> </s>
