'Ensure a clean ValueError with the expected message'

def assertFactoryError(self, factory, kind):

    addr = 'camelot'
    msg = '%r    does    not    appear    to    be    an    IPv4    or    IPv6    %s'
    with self.assertCleanError(ValueError, msg, addr, kind):
        factory(addr)
