

def test_availability_georgemason(self):
    a = get_availability('m55883')
    self.assertEqual(a['wrlc'], '1560207')
    self.assertEqual(a['summon'], 'm55883')
    self.assertEqual(len(a['offers']), 1)
    o = a['offers'][0]
    self.assertEqual(o['@type'], 'Offer')
    self.assertEqual(o['seller'], 'George Mason')
    self.assertEqual(o['sku'], 'PR6019.O9 F5')
    self.assertTrue((o['availability'] in availability))

dataset/ETHPy150Open gwu-libraries/launchpad/lp/ui/dbtest.py DbTests.test_availability_georgemason/original