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_ipv4_address_type(self):
        v = types.IPv4AddressType()
        v.validate('127.0.0.1')
        v.validate('192.168.0.1')
        self.assertRaises(ValueError, v.validate, '')

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
    def test_validate_ipv4_address_type(self):
        v = types.IPv4AddressType()
        v.validate('127.0.0.1')
        v.validate('192.168.0.1')
        self.assertRaises(ValueError, v.validate, '')