def test_component_check_with_parts(self): l = lookups.Lookup(serialNumber=env['GSX_SN']) l.repairStrategy = "CA" l.shipTo = env['GSX_SHIPTO'] part = ServicePart('661-5502') part.symptomCode = 'H06' r = l.component_check([part]) self.assertFalse(r.eligibility)
def test_component_check_with_parts(self): l = lookups.Lookup(serialNumber=os.getenv('GSX_SN')) l.repairStrategy = "CA" l.shipTo = os.getenv('GSX_SHIPTO') r = l.component_check([self.part]) self.assertIsInstance(r.eligibility, bool)
def test_component_check(self): l = lookups.Lookup(serialNumber=env['GSX_SN']) l.repairStrategy = "CA" l.shipTo = env['GSX_SHIPTO'] r = l.component_check() self.assertFalse(r.eligibility)
def test_component_check(self): l = lookups.Lookup(serialNumber=os.getenv('GSX_SN')) l.repairStrategy = "CA" l.shipTo = os.getenv('GSX_SHIPTO', os.getenv('GSX_SOLDTO')) r = l.component_check() self.assertFalse(r.eligibility)