<s> """<STR_LIT>""" <EOL> from lxml import etree <EOL> from allure . constants import Status <EOL> class TestCommonImpl : <EOL> def test_smoke ( self , reportdir , allure_impl , schema ) : <EOL> """<STR_LIT>""" <EOL> allure_impl . start_suite ( name = '<STR_LIT>' ) <EOL> allure_impl . start_case ( name = '<STR_LIT>' ) <EOL> allure_impl . stop_case ( status = Status . PASSED ) <EOL> allure_impl . stop_suite ( ) <EOL> assert len ( reportdir . listdir ( ) ) == <NUM_LIT:1> <EOL> schema . assertValid ( etree . parse ( str ( reportdir . listdir ( ) [ <NUM_LIT:0> ] ) ) ) <EOL> def test_empty_initial_environment ( self , allure_impl ) : <EOL> assert allure_impl . environment == { } <EOL> def test_not_store_environment_file_if_environment_empty ( self , reportdir , allure_impl ) : <EOL> allure_impl . store_environment ( ) <EOL> assert not reportdir . listdir ( ) <EOL> def test_store_environment_file_if_environment_present ( self , reportdir , allure_impl , properties_file_name ) : <EOL> allure_impl . environment . update ( { '<STR_LIT:foo>' : '<STR_LIT:bar>' } ) <EOL> allure_impl . store_environment ( ) <EOL> assert reportdir . listdir ( ) [ <NUM_LIT:0> ] . basename == properties_file_name </s>
