def test_validate_nonstring_url(self): with self.assertRaises(errors.InvalidInputError): service.validate_url(123)
def test_validate_relative_url(self): with self.assertRaises(errors.InvalidInputError): service.validate_url('sdfsf')
def test_validate_malformed_url(self): with self.assertRaises(errors.InvalidInputError): service.validate_url('svn://sdfsf')