'Testing binary lookup in ~/bin'

@unittest.skipIf(six.PY2, 'py3    test    only')
@mock.patch('shutil.which')
@mock.patch('os.environ.get')
def test_binary_lookup_in_home_py3(self, mock_env_get, mock_shutil_which):

    oc_bin = os.path.expanduser('~/bin/oc')
    mock_env_get.side_effect = (lambda _v, _d: '/bin:/usr/bin')
    mock_shutil_which.side_effect = (lambda _f, path=None: oc_bin)
    self.assertEqual(locate_oc_binary(), oc_bin)
