示例#1
0
 def test_find_deployment(self):
     deployment_href = self._create_deployment()
     deployment = righteous.find_deployment(self.deployment)
     self.assertEqual(deployment['nickname'], self.deployment)
     self.assertEqual(deployment['href'], deployment_href)
示例#2
0
 def test_find_deployment_no_result(self):
     self.response.content = "[]"
     deployment = righteous.find_deployment("bruce")
     request_url = "/deployments.js?filter=nickname=bruce"
     self.request.assert_called_once_with(request_url)
     assert not deployment