def test_duplicate_deployment(self): deployment_href = self._create_deployment() success, location = righteous.duplicate_deployment(deployment_href) self.assertTrue(success) self.assertNotEqual(deployment_href, location) duplicated_deployment = righteous.deployment_info(location) self.assertEqual( duplicated_deployment['nickname'], self.deployment + ' v1' ) self.deployments.append(location)
def test_deployment_info(self): deployment_href = self._create_deployment() deployment = righteous.deployment_info(deployment_href) self.assertTrue(deployment) self.assertEqual(deployment['nickname'], self.deployment) self.assertEqual(deployment['description'], 'test deployment')
def test_deployment_info(self): self.response.content = "{}" righteous.deployment_info("/deployment/ref") self.request.assert_called_once_with("/deployment/ref.js", prepend_api_base=False)