def METHOD_NAME(self):
    with pytest.raises(IntegrityError) as excinfo:
        UserAlias.objects.create(
            alias_name=self.VALID_ALIAS_NAME,
            alias_of=self.default_user
        )
    assert str(excinfo.value) == (
        'null value in column "alias_of_id" violates not-null constraint '
        'DETAIL:  Failing row contains ({alias_pk}, {alias_name}, null)\n'
    ).format(
        # FIXME: get correct pk or filter out alias_pk from error
        alias_pk=4,
        alias_name=self.VALID_ALIAS_NAME
    )