def test_create_user_account_incoherent_dates(self) -> None:
        """Tests creating a user account with incoherent dates."""
        with self.assertRaises(ValueError):
            user_account.UserAccount(
                value="test_account",
                account_created=datetime.datetime(
                    2023, 12, 31, tzinfo=datetime.timezone.utc
                ),
                account_expires=datetime.datetime(
                    2023, 1, 1, tzinfo=datetime.timezone.utc
                ),
            ).save()
Tests creating a user account with incoherent dates.
tests/schemas/observable.py