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'))
コード例 #3
0
 def test_stage_cdn_match(self):
     self.assertTrue(RH_CDN_REGEX.match('cdn.stage.redhat.com'))
コード例 #4
0
 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'))
コード例 #5
0
 def test_cdn_match(self):
     self.assertTrue(RH_CDN_REGEX.match("cdn.redhat.com"))