def test_get_markets_json(self):
        transport = Transport(self.api_key, response_format='json')
        self.result = transport.get_markets('en-GB').parsed

        self.assertTrue('Countries' in self.result)
        self.assertTrue(len(self.result['Countries']) > 0)
    def test_get_markets_xml(self):
        transport = Transport(self.api_key, response_format='xml')
        self.result = transport.get_markets('de-DE').parsed

        self.assertTrue(None != self.result.find('./Countries'))
        self.assertTrue(len(self.result.findall('./Countries/CountryDto')) > 0)
    def test_get_markets_xml(self):
        transport = Transport(self.api_key, response_format='xml')
        self.result = transport.get_markets('de-DE').parsed

        self.assertIsNotNone(self.result.find('./Countries'))
        self.assertTrue(len(self.result.findall('./Countries/CountryDto')) > 0)
    def test_get_markets_json(self):
        transport = Transport(self.api_key, response_format='json')
        self.result = transport.get_markets('en-GB').parsed

        self.assertTrue('Countries' in self.result)
        self.assertTrue(len(self.result['Countries']) > 0)
    def test_get_markets(self):
        transport = Transport(self.api_key)
        self.result = transport.get_markets('en-GB')

        self.assertTrue('Countries' in self.result)
        self.assertTrue(len(self.result['Countries']) > 0)
    def test_get_markets_xml(self):
        transport = Transport(self.api_key, response_format="xml")
        self.result = transport.get_markets("de-DE").parsed

        self.assertTrue(None != self.result.find("./Countries"))
        self.assertTrue(len(self.result.findall("./Countries/CountryDto")) > 0)
    def test_get_markets_json(self):
        transport = Transport(self.api_key, response_format="json")
        self.result = transport.get_markets("en-GB").parsed

        self.assertTrue("Countries" in self.result)
        self.assertTrue(len(self.result["Countries"]) > 0)