from .test import BaseTest

class Test_Id_Error_Escapedslash(BaseTest):
    label = 'Forward slash gives 404'
    level = 1 # should this also be true for level0? Glen
    category = 1
    versions = [u'1.0', u'1.1', u'2.0',u'3.0']
    validationInfo = None

    def run(self, result):
        try:
            url = result.make_url({'identifier': 'a/b'})
            error = result.fetch(url)
            self.validationInfo.check('status', result.last_status, 404, result)
            return result            
        except:
            raise
