def test_create(self):
        sess = mock.Mock()
        sess.put = mock.Mock()
        sess.put.return_value = mock.Mock()
        sot = queue.Queue(FAKE)

        sot.create(sess)

        url = 'queues/%s' % FAKE_NAME
        headers = {'Accept': ''}
        sess.put.assert_called_with(url, endpoint_filter=sot.service,
                                    headers=headers)
        self.assertEqual(FAKE_NAME, sot.id)
        self.assertEqual(FAKE_NAME, sot.name)
dataset/ETHPy150Open openstack/python-openstacksdk/openstack/tests/unit/message/v1/test_queue.py/TestQueue.test_create/original