Esempio n. 1
0
 def test_init(self):
     name = 'test'
     queue = BaseQueue(name)
     self.assertEqual(queue.name, name)
     self.assertEqual(queue.exclusive, False)
     self.assertEqual(queue.auto_delete, False)
     self.assertEqual(queue.expiration, 0)
Esempio n. 2
0
 def test_neq(self):
     self.assertTrue(BaseQueue('1') != BaseQueue('2'))
     self.assertFalse(BaseQueue('1') != BaseQueue('1'))