def test_anchors(self): self.assertFalse(RH_CDN_REGEX.match('something.cdn.redhat.com.org')) self.assertFalse(RH_CDN_REGEX.match('cdn.redhat.com.org')) self.assertFalse(RH_CDN_REGEX.match('something.cdn.redhat.com'))
def test_stage_cdn_match(self): self.assertTrue(RH_CDN_REGEX.match('cdn.stage.redhat.com'))
def test_cdn_match(self): self.assertTrue(RH_CDN_REGEX.match("cdn.redhat.com"))