code: def test_serialize(self):
      user_model = User(
          first_name="Foo",
          last_name="Bar",
          username="test",
          password="test",
          email=TEST_EMAIL,
          roles=[self.role],
          created_on=timezone.parse(DEFAULT_TIME),
          changed_on=timezone.parse(DEFAULT_TIME),
      )
      self.session.add(user_model)
      self.session.commit()
      user = (
          self.session.query(User)
          .filter(User.email == TEST_EMAIL)
          .first()
      )
      deserialized_user = user_collection_item_schema.dump(user)
      # No user_id and password in dump
      assert deserialized_user == {
          "created_on": DEFAULT_TIME,
          "email": "test@example.org",
          "changed_on": DEFAULT_TIME,
          "active": None,
          "last_login": None,
          "last_name": "Bar",
          "fail_login_count": None,
          "first_name": "Foo",
          "username": "test",
          "login_count": None,
          "roles": [{"name": "TestRole"}],
      }
  
file_path: airflow/tests/api_connexion/schemas/test_user_schema.py
imports: from __future__ import annotations
  import pytest
  from airflow.api_connexion.schemas.user_schema import user_collection_item_schema, user_schema
  from airflow.providers.fab.auth_manager.models import User
  from airflow.utils import timezone
  from tests.test_utils.api_connexion_utils import create_role, delete_role
label_desc: Use image node_id 1 for calling the TestUserCollectionItemSchema obj's underlying member method code with example usage: obj.test_serialize() without return types