def testGetShippingMethod_1(self):
        """Requested shipping method exists.
        """
        sm = IShippingMethodManagement(self.shop)
        result = sm.getShippingMethod("standard")

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

        self.failUnless(result is None)
    def testGetSelectedShippingMethod(self):
        """
        """
        sm = IShippingMethodManagement(self.shop)
        result = sm.getSelectedShippingMethod()

        self.assertEqual(result.getId(), "standard")
    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")
 def testGetSelectedShippingMethod(self):
     """
     """
     sm = IShippingMethodManagement(self.shop)
     result = sm.getSelectedShippingMethod()
     
     self.assertEqual(result.getId(), "standard")
    def testGetShippingMethods(self):
        """
        """
        sm = IShippingMethodManagement(self.shop)
        methods = sm.getShippingMethods()
        ids = [method.getId() for method in methods]

        self.assertEqual(ids, ["standard"])
    def testGetShippingMethods(self):
        """
        """
        sm = IShippingMethodManagement(self.shop)
        methods = sm.getShippingMethods()
        ids = [method.getId() for method in methods]

        self.assertEqual(ids, ["standard"])