def test_basket_lines_are_converted_to_xml(self): product = factories.create_product(price=D('12.99')) basket = Basket() basket.add_product(product) data = the3rdman.build_data_dict(basket=basket) doc = the3rdman.add_fraud_fields(**data) xml = doc.toxml() self.assertXmlElementEquals( xml, '3', 'The3rdMan.CustomerInformation.sales_channel')
def test_basket_lines_are_converted_to_xml(self): product = factories.create_product(price=D('12.99')) basket = Basket() basket.add_product(product) data = the3rdman.build_data_dict( basket=basket) doc = the3rdman.add_fraud_fields(**data) xml = doc.toxml() self.assertXmlElementEquals(xml, '3', 'The3rdMan.CustomerInformation.sales_channel')
def test_basket_lines_are_converted_to_xml(self): product = factories.create_product(price=D("12.99")) basket = Basket() # Nasty hack to make test suite work with both Oscar 0.5 and 0.6 try: from oscar.apps.partner import strategy except ImportError: pass else: basket.strategy = strategy.Default() basket.add_product(product) data = the3rdman.build_data_dict(basket=basket) doc = the3rdman.add_fraud_fields(**data) xml = doc.toxml() self.assertXmlElementEquals(xml, "3", "The3rdMan.CustomerInformation.sales_channel")
def test_basket_lines_are_converted_to_xml(self): product = factories.create_product(price=D('12.99')) basket = Basket() # Nasty hack to make test suite work with both Oscar 0.5 and 0.6 try: from oscar.apps.partner import strategy except ImportError: pass else: basket.strategy = strategy.Default() basket.add_product(product) data = the3rdman.build_data_dict(basket=basket) doc = the3rdman.add_fraud_fields(**data) xml = doc.toxml() self.assertXmlElementEquals( xml, '3', 'The3rdMan.CustomerInformation.sales_channel')
def test_for_smoke(self): doc = the3rdman.add_fraud_fields(customer_info={"title": "mr"}) xml = doc.toxml() self.assertXmlElementEquals(xml, "mr", "The3rdMan.CustomerInformation.title")
def test_for_smoke(self): doc = the3rdman.add_fraud_fields(customer_info={'title': 'mr'}) xml = doc.toxml() self.assertXmlElementEquals(xml, 'mr', 'The3rdMan.CustomerInformation.title')
def test_for_smoke(self): doc = the3rdman.add_fraud_fields(customer_info={'title': 'mr'}) xml = doc.toxml() self.assertXmlElementEquals(xml, 'mr', 'The3rdMan.CustomerInformation.title')