def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._account = Account(client=cls._client) cls._notes = cls._account.disconnects.create({ "order_id": "123" }, False).notes cls._url = cls._client.config.url + cls._notes.get_xpath()
def setUpClass(cls): cls._mock_res = MagicMock("requests.models.Request") cls._mock_res.headers = {"location": "return/return1"} cls._mock_res.content = b"foobar" cls._mock_res.status_code = 1337 with patch("iris_sdk.utils.config.Config"): with patch("iris_sdk.utils.rest.RestClient"): cls._client = Client()
def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._account = Account(client=cls._client)
def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._account = Account(client=cls._client) cls._tns = Tns(client=cls._client) cls._url = cls._client.config.url + cls._tns.get_xpath( ) + "/7576768750"
def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._crc = CoveredRateCenters(client=cls._client)
def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._cities = Cities(client=cls._client)
def setUpClass(cls): cls._client = Client("http://foo", "bar", "bar", "qux") cls._account = Account(client=cls._client) cls._site = cls._account.sites.create({"id": "1337"}, False) cls._sip_peers = cls._site.sip_peers
def setUpClass(cls): with patch("iris_sdk.utils.config.Config"): with patch("iris_sdk.utils.rest.RestClient"): cls._client = Client("foo///")
def test_client_init(self, mock1, mock2): self._client = Client("foo", "bar", "baz", "qux", "quux") mock1.assert_called_once_with("foo", "bar", "baz", "qux", "quux") mock2.assert_any_call()
def setUpClass(cls): with patch("iris_sdk.utils.config.Config"): cls._client = Client()