'Bypassing Cone Search query and just imitating the reply,
then check if appropriate error message is caught.'

def conesearch_compare(self, xmlfile, msg):

    if (xmlfile == u'conesearch_error4.xml'):
        pytest.xfail(u'Currently    not    supported,    see    astropy.io.votable.exceptions.W22')
    url = get_pkg_data_filename(os.path.join(self.datadir, xmlfile))
    try:
        vos_catalog._vo_service_request(url, self.pedantic, {})
    except VOSError as e:
        assert (msg in str(e))
