Example #1
0
 def test_uuid_uuid_equality(self):
     uid = uuid.uuid4()
     self.assertTrue(_ReplayFilters.uuid(operator.eq, SoapRecord(guid=str(uid)), uid))
Example #2
0
 def test_uuid_types(self):
     uid = 'thisisnotauuid'
     with self.assertRaises(ValueError):
         _ReplayFilters.uuid(operator.eq, SoapRecord(), uid)
Example #3
0
 def test_uuid_types_int(self):
     with self.assertRaises((TypeError, ValueError)):
         _ReplayFilters.uuid(operator.eq, SoapRecord(), 1)