def test_hosts(self): collection = HostCollection(self._client, "url/") res = collection._new({"name":"host_name"}) # Settings self._test_settings(res) # Application contexts app_coll = res.applications() self._read_data = {"application":"app_name"} context = app_coll._new(self._read_data) self._expected_url = "url/" + res.identifier + "/applications/" + context.identifier context.refresh()
def test_hosts(self): collection = HostCollection(self._client, "url/") res = collection._new({"name": "host_name"}) # Settings self._test_settings(res) # Application contexts app_coll = res.applications() self._read_data = {"application": "app_name"} context = app_coll._new(self._read_data) self._expected_url = "url/" + res.identifier + "/applications/" + context.identifier context.refresh()
def test_hosts(self): collection = HostCollection(None, "") res = collection._new({"name":"name"}) self.assertTrue(isinstance(res, Host))
def test_hosts(self): collection = HostCollection(None, "") res = collection._new({"name": "name"}) self.assertTrue(isinstance(res, Host))