<s> from mock import patch <EOL> import pytest <EOL> @ pytest . yield_fixture <EOL> def debian_family ( ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def debian ( debian_family ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def debian_8_0 ( debian ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def debian_7_2 ( debian ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def ubuntu ( debian_family ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def ubuntu_12_04 ( ubuntu ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> @ pytest . yield_fixture <EOL> def ubuntu_14_04 ( ubuntu ) : <EOL> with patch ( '<STR_LIT>' ) as mock : <EOL> mock . return_value = '<STR_LIT>' <EOL> yield <EOL> def test_default_site_filename_debian_7_2 ( debian_7_2 ) : <EOL> from fabtools . apache import _site_config_filename <EOL> assert _site_config_filename ( '<STR_LIT:default>' ) == '<STR_LIT:default>' <EOL> def test_default_site_linkname_debian_7_2 ( debian_7_2 ) : <EOL> from fabtools . apache import _site_link_filename <EOL> assert _site_link_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test_default_site_filename_debian_8_0 ( debian_8_0 ) : <EOL> from fabtools . apache import _site_config_filename <EOL> assert _site_config_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test_default_site_linkname_debian_8_0 ( debian_8_0 ) : <EOL> from fabtools . apache import _site_link_filename <EOL> assert _site_link_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test_default_site_filename_ubuntu_12_04 ( ubuntu_12_04 ) : <EOL> from fabtools . apache import _site_config_filename <EOL> assert _site_config_filename ( '<STR_LIT:default>' ) == '<STR_LIT:default>' <EOL> def test_default_site_linkname_ubuntu_12_04 ( ubuntu_12_04 ) : <EOL> from fabtools . apache import _site_link_filename <EOL> assert _site_link_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test_default_site_filename_ubuntu_14_04 ( ubuntu_14_04 ) : <EOL> from fabtools . apache import _site_config_filename <EOL> assert _site_config_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test_default_site_linkname_ubuntu_14_04 ( ubuntu_14_04 ) : <EOL> from fabtools . apache import _site_link_filename <EOL> assert _site_link_filename ( '<STR_LIT:default>' ) == '<STR_LIT>' <EOL> def test__site_config_filename ( ) : <EOL> from fabtools . apache import _site_config_filename <EOL> assert _site_config_filename ( '<STR_LIT:foo>' ) == '<STR_LIT>' </s>
