Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
    def test_validate_uuid_type(self):
        v = types.UuidType()
        self.assertEqual(v.validate('6a0a707c-45ef-4758-b533-e55adddba8ce'),
                         '6a0a707c-45ef-4758-b533-e55adddba8ce')
        self.assertEqual(v.validate('6a0a707c45ef4758b533e55adddba8ce'),

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
    def test_validate_uuid_type(self):
        v = types.UuidType()
        v.validate('6a0a707c-45ef-4758-b533-e55adddba8ce')
        v.validate('6a0a707c45ef4758b533e55adddba8ce')
        self.assertRaises(ValueError, v.validate, '')