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)
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