def METHOD_NAME(self, session: Session, mac: str, expected: str):
    # given
    node = session.add_node(CoreNode)
    iface_data = InterfaceData()
    iface = node.create_iface(iface_data)
    # when
    iface.set_mac(mac)
    # then
    assert str(iface.mac) == expected