

def test_queuestorage_interface(self):
    qs = QueueStorage()
    self.assertRaises(NotImplementedError, qs.write, self.env, 1234567890)
    self.assertRaises(NotImplementedError, qs.set_timestamp, '1234', 1234567890)
    self.assertRaises(NotImplementedError, qs.increment_attempts, '1234')
    self.assertRaises(NotImplementedError, qs.set_recipients_delivered, '1234', [])
    self.assertRaises(NotImplementedError, qs.load)
    self.assertRaises(NotImplementedError, qs.get, '1234')
    self.assertRaises(NotImplementedError, qs.remove, '1234')
    self.assertRaises(NotImplementedError, qs.wait)
    self.assertRaises(NotImplementedError, qs.get_info)

dataset/ETHPy150Open slimta/python-slimta/test/test_slimta_queue.py TestQueue.test_queuestorage_interface/original