def testAppServerValidatorWithMalformedFlag(self):
     """Test that incorrect input handling, raises ValidationError."""
     # Test that the second split (ValueError) is caught.
     with self.assertRaises(flags.ValidationError):
         deploy_impl._AppServerValidator(app_servers=['wrong:format'])
 def testAppServerValidator(self):
     """Test when an app server string is correct."""
     self.assertTrue(
         deploy_impl._AppServerValidator(app_servers=_APP_SERVERS))