def check_outlet_status(pdu_controller, outlet, expect_status):
    """
    Check if a given PSU is at expect status
    :param pdu_controller: PDU controller
    :param outlet: PDU outlet
    :param expect_status: Expect bool status, True means on, False means off
    :return: True if a given PSU is at expect status
    """
    status = pdu_controller.get_outlet_status(outlet)
    return 'outlet_on' in status[0] and status[0]['outlet_on'] == expect_status