#NEWLINE# def test_cwd_conf_exists( self ) : #NEWLINE# #INDENT# fake_path = Mock ( ) #NEWLINE# fake_path . join = Mock ( return_value = '/srv/cephdeploy.conf' ) #NEWLINE# fake_path . exists = Mock ( return_value = True ) #NEWLINE# with patch ( 'ceph_deploy.conf.cephdeploy.path' , fake_path ) : #NEWLINE# #INDENT# result = conf . cephdeploy . location ( ) #NEWLINE# #UNINDENT# assert ( result == '/srv/cephdeploy.conf' )