acc_regex_test.py (628B) - raw


      1 import acc_regex
      2 import unittest
      3 
      4 
      5 class test_create_ors(unittest.TestCase):
      6     def test_create_ors(self):
      7         self.assertEqual(acc_regex.create_ors('Rent Transportation'), 'Rent or Transportation')
      8         self.assertEqual(acc_regex.create_ors('Income and Job'), 'Income and Job')
      9         self.assertEqual(acc_regex.create_ors('Radio and (Judge Police)'), 'Radio and (Judge or Police)')
     10 
     11         self.assertEqual(acc_regex.create_ors('(Telephone not Beach) not House'), '(Telephone or not Beach) or not House')
     12 
     13         self.assertEqual(acc_regex.create_ors('Run'), 'Run')
     14 
     15 
     16 if __name__ == '__main__':
     17     unittest.main()