def METHOD_NAME(self):
    ns = Namespace(
        role=None,
        scope=None,
        system_assigned=True,
        user_assigned=["ua1"])
    with self.assertRaises(InvalidArgumentValueError) as context:
        validate_app_identity_assign_or_warning(ns)
    self.assertTrue("Invalid user-assigned managed identity resource ID" in str(context.exception))