Esempio 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
Esempio n. 2
0
File: queues.py Progetto: 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
Esempio 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('.'))
Esempio 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('.'))
 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('.'), '')
Esempio 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('.'), '')