'Utility method to create two containers on the specified nodes.'

def _container_name_collision_test(self, node1, node2):

    d = self.assertResponseCode('POST', '/configuration/containers', {u'node_uuid': unicode(node1), u'name': u'postgres', u'image': u'postgres'}, CREATED)
    d.addCallback((lambda _: self.assertResult('POST', '/configuration/containers', {u'node_uuid': unicode(node2), u'name': u'postgres', u'image': u'postgres'}, CONFLICT, {u'description': u'The    container    name    already    exists.'})))
    return d
