'https://www.kernel.org/pub/'

def test_head_first_injection_without_script_in_head(self):

    self.reload_zmirror(configs_dict={'custom_inject_content': {'head_first': [{'content': 'Love', 'url_regex': None}, {'content': 'Luciaz', 'url_regex': None}, {'content': 'Forever'}, {'content': '!', 'url_regex': '^www\\.kernel\\.org/pub/?'}, {'content': 'ThisShouldNotBeInjected', 'url_regex': 'wtf_regex'}]}})
    self.rv = self.client.get(self.url('/pub/'), environ_base=env(), headers=headers())
    text = self.rv.data.decode(encoding='utf-8')
    self.assertIn('LoveLuciazForever!', text, msg=self.dump())
    self.assertNotIn('ThisShouldNotBeInjected', text, msg=self.dump())
    self.assertLess(text.find('LoveLuciazForever!'), text.find('</head'))
