def METHOD_NAME(self, session, user, switch):
    # <mac> - <nasip> - <nasport> - "Cleartext-Password" - := - <mac> - 10
    # We have one interface with a MAC whose room has two ports on the same switch
    rows = session.query(hades.radcheck.table).all()
    host = user.hosts[0]
    mac = host.interfaces[0].mac
    for row in rows:
        assert row.UserName == mac
        assert row.NASIPAddress == switch.management_ip
        assert row.Attribute == "User-Name"
        assert row.Op == "=*"
        assert row.Value is None
        assert row.Priority == 10
    assert {row.NASPortId for row in rows} \
        == {port.switch_port.name for port in host.room.patch_ports}