def test_temp_location(self):
        # get a bib_id for something that's in temp location to make sure
        # that availabilityAtOrFrom uses that instead of the permanent location
        q = """
            SELECT bib_id, item.item_id
            FROM bib_mfhd, mfhd_item, item
            WHERE ROWNUM = 1
              AND item.temp_location = 682
              AND item.item_id = mfhd_item.item_id
              AND mfhd_item.mfhd_id = bib_mfhd.mfhd_id
            """
        bib_id, item_id = _fetch_one(q)
        a = get_availability(str(bib_id))
        for o in a['offers']:
            if 'serialNumber' in o or o['serialNumber'] == str(item_id):
                self.assertEqual(
                    o['availabilityAtOrFrom'].lower(),
                    'wrlc shared collections facility'
                )
dataset/ETHPy150Open gwu-libraries/launchpad/lp/ui/dbtest.py/DbTests.test_temp_location/operator `and` -> `or`