コード例 #1
0
ファイル: test_urtext.py プロジェクト: andrewhead/StackSkim
 def test_mac_address(self):
     patt = r'([0-9A-F]{2}[:]){5}([0-9A-F]{2})'
     text = urtext(patt)
     self.assertTrue(bool(re.match(patt, text)))
コード例 #2
0
ファイル: test_urtext.py プロジェクト: andrewhead/StackSkim
 def test_phone_number(self):
     patt = r'\d{3}-\d{3}-\d{4}'
     text = urtext(patt)
     self.assertTrue(bool(re.match(patt, text)))