def test_api_version_2_3(self):
     """Test getting the endpoint for a specific API version for profitbricks-client 2.3"""
     endpoint = profitbricks_client._endpoint_from_support_matrix("2.3", "1.3",
                                                                  self.support_matrix)
     self.assertEqual("https://api.profitbricks.com/1.3/wsdl", endpoint)
 def test_api_version_2_3(self, urlopen_mock):
     """Test getting the endpoint for a specific API version for profitbricks-client 2.3"""
     urlopen_mock.return_value = io.StringIO(SUPPORT_MATRIX)
     endpoint = profitbricks_client._endpoint_from_support_matrix(
         "2.3", "1.3")
     self.assertEqual("https://api.profitbricks.com/1.3/wsdl", endpoint)
 def test_latest_2_5(self):
     """Test getting the latest API endpoint for profitbricks-client 2.5"""
     endpoint = profitbricks_client._endpoint_from_support_matrix("2.5", "latest",
                                                                  self.support_matrix)
     self.assertEqual("https://api.profitbricks.com/1.4/wsdl", endpoint)
 def test_latest_2_5(self, urlopen_mock):
     """Test getting the latest API endpoint for profitbricks-client 2.5"""
     urlopen_mock.return_value = io.StringIO(SUPPORT_MATRIX)
     endpoint = profitbricks_client._endpoint_from_support_matrix(
         "2.5", "latest")
     self.assertEqual("https://api.profitbricks.com/1.4/wsdl", endpoint)