def test_environments(self): collection = EnvironmentCollection(self._client, "url/") res = collection._new({"name":"env_name"}) # Settings self._test_settings(res) # Hosts host_coll = res.hosts() host = host_coll._new({"name":"host_name"}) self._expected_url = "url/" + res.identifier + "/hosts/" + host.identifier host.update()
def test_environments(self): collection = EnvironmentCollection(self._client, "url/") res = collection._new({"name": "env_name"}) # Settings self._test_settings(res) # Hosts host_coll = res.hosts() host = host_coll._new({"name": "host_name"}) self._expected_url = "url/" + res.identifier + "/hosts/" + host.identifier host.update()
def test_environments(self): collection = EnvironmentCollection(None, "") res = collection._new({"name":"name"}) self.assertTrue(isinstance(res, Environment))
def test_environments(self): collection = EnvironmentCollection(None, "") res = collection._new({"name": "name"}) self.assertTrue(isinstance(res, Environment))