def testGetShippingMethod_2(self): """Requested shipping method doesn't exist. """ sm = IShippingMethodManagement(self.shop) result = sm.getShippingMethod("dummy") self.failUnless(result is None)
def testGetShippingMethod_1(self): """Requested shipping method exists. """ sm = IShippingMethodManagement(self.shop) result = sm.getShippingMethod("standard") self.assertEqual(result.getId(), "standard")