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_ipv6_address_type(self):
        v = types.IPv6AddressType()
        v.validate('0:0:0:0:0:0:0:1')
        v.validate('2001:0db8:bd05:01d2:288a:1fc0:0001:10ee')
        self.assertRaises(ValueError, v.validate, '')

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
    def test_validate_ipv6_address_type(self):
        v = types.IPv6AddressType()
        v.validate('0:0:0:0:0:0:0:1')
        v.validate('2001:0db8:bd05:01d2:288a:1fc0:0001:10ee')
        self.assertRaises(ValueError, v.validate, '')