def _create_container(self):
        saving = self.persistence_service.save(Deployment(
            nodes={
                Node(
                    uuid=self.NODE_A_UUID,
                    applications=[
                        Application(
                            name=u'leavemealone',
                            image=DockerImage.from_string(u'busybox'),
                        ),
                    ]
                ),
                Node(uuid=self.NODE_B_UUID),
            }
        ))

        saving.addCallback(lambda _: self.assertResponseCode(
            b"POST", b"/configuration/containers",
            {
                u"node_uuid": self.NODE_A,
                u"name": u"mycontainer",
                u"image": u"busybox"
            }, CREATED
        ))

        return saving
Return all objects of type model where the group has the passed permissions
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/UpdateContainerConfigurationTestsMixin._create_container--crossover with--dataset/ETHPy150Open callowayproject/django-objectpermissions/objectpermissions/registration.py/group_get_objects_with_permission