<s> import mock <EOL> import testtools <EOL> from os_refresh_config import os_refresh_config <EOL> class TestRefreshConfig ( testtools . TestCase ) : <EOL> def test_default_base_dir ( self ) : <EOL> default = '<STR_LIT>' <EOL> with mock . patch ( '<STR_LIT>' , lambda x : x == default ) : <EOL> self . assertEqual ( default , os_refresh_config . default_base_dir ( ) ) <EOL> def test_default_base_dir_deprecated ( self ) : <EOL> default = '<STR_LIT>' <EOL> with mock . patch ( '<STR_LIT>' , lambda x : x == default ) : <EOL> self . assertEqual ( default , os_refresh_config . default_base_dir ( ) ) <EOL> def test_default_base_dir_both ( self ) : <EOL> default = '<STR_LIT>' <EOL> deprecated = '<STR_LIT>' <EOL> with mock . patch ( '<STR_LIT>' , lambda x : ( x == default or <EOL> x == deprecated ) ) : <EOL> self . assertEqual ( default , os_refresh_config . default_base_dir ( ) ) </s>
