'Should return a list of (possibly) mixed strings and regexps'

def test_parse_allowed_origin_hostnames(self):

    config = CORSParsingMockConfig()
    self.assertEqual(config._parse_allowed_origin_hostnames({'allowed_origin_hostnames': ''}), None)
    hostnames = config._parse_allowed_origin_hostnames({'allowed_origin_hostnames': '/host\\d{2}/,geocities.com,miskatonic.edu'})
    self.assertTrue(isinstance(hostnames[0], re._pattern_type))
    self.assertTrue(isinstance(hostnames[1], str))
    self.assertTrue(isinstance(hostnames[2], str))
