示例#1
0
 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)
示例#2
0
 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')
示例#3
0
 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)