def METHOD_NAME(session: Session):
    # test when name is None
    contact2 = DummyContact()
    session.add(contact2)
    session.flush()
    expected = f"dummycontact-{contact2.id}"
    assert contact2.slug == expected