Ejemplo n.º 1
0
        def denormalizer(info, name):
            queue = {'name': utils.descope_queue_name(name)}
            marker_next['next'] = queue['name']
            if detailed:
                queue['metadata'] = self._unpacker(info[1])

            return queue
Ejemplo n.º 2
0
Archivo: queues.py Proyecto: rose/zaqar
        def denormalizer(info, name):
            queue = {'name': utils.descope_queue_name(name)}
            marker_next['next'] = queue['name']
            if detailed:
                queue['metadata'] = info[1]

            return queue
Ejemplo n.º 3
0
 def test_descope_queue_name(self):
     self.assertEqual('q', utils.descope_queue_name('p.q'))
     self.assertEqual('q', utils.descope_queue_name('.q'))
     self.assertEqual('', utils.descope_queue_name('.'))
Ejemplo n.º 4
0
 def test_descope_queue_name(self):
     self.assertEqual('q', utils.descope_queue_name('p.q'))
     self.assertEqual('q', utils.descope_queue_name('.q'))
     self.assertEqual('', utils.descope_queue_name('.'))
Ejemplo n.º 5
0
 def test_descope_queue_name(self):
     self.assertEqual(utils.descope_queue_name('p.q'), 'q')
     self.assertEqual(utils.descope_queue_name('.q'), 'q')
     self.assertEqual(utils.descope_queue_name('.'), '')
Ejemplo n.º 6
0
 def test_descope_queue_name(self):
     self.assertEqual(utils.descope_queue_name('p.q'), 'q')
     self.assertEqual(utils.descope_queue_name('.q'), 'q')
     self.assertEqual(utils.descope_queue_name('.'), '')