def METHOD_NAME(self):
    ns = Namespace(system_assigned=True,
                   assign_identity=False)
    with self.assertRaises(InvalidArgumentValueError) as context:
        validate_create_app_with_system_identity_or_warning(ns)
    self.assertTrue('Parameter "system-assigned" should not use together with "assign-identity".' in str(context.exception))