'Verify that JJB uses config file in user home folder'

def test_use_config_in_user_home(self):

    args = ['test', 'foo']
    conffp = io.open(self.default_config_file, 'r', encoding='utf-8')
    with patch('os.path.isfile', return_value=True) as m_isfile:
        def side_effect(path):
            if (path == self.user_conf):
                return True
            return False
        m_isfile.side_effect = side_effect
        with patch('io.open', return_value=conffp) as m_open:
            entry.JenkinsJobs(args, config_file_required=True)
            m_open.assert_called_with(self.user_conf, 'r', encoding='utf-8')
