def test_check_config_sanity_domain(self):
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', ('a' * 64)])
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', ((('a' * 50) + '.') * 10)])
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', '0.0.0.0'])
def test_check_config_sanity_domain(self):
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', ('a' * 64)])
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', ((('a' * 50) + '.') * 10)])
    self.assertRaises(errors.ConfigurationError, self._call, ['-d', '0.0.0.0'])