Beispiel #1
0
 def test_put_raises_error_on_shutdown(self):
     q = ShutdownQueue()
     q.trigger_shutdown()
     with self.assertRaises(QueueShutdownError):
         q.put('foo')
Beispiel #2
0
 def test_put_raises_error_on_shutdown(self):
     q = ShutdownQueue()
     q.trigger_shutdown()
     with self.assertRaises(QueueShutdownError):
         q.put('foo')
Beispiel #3
0
 def test_handles_normal_put_get_requests(self):
     q = ShutdownQueue()
     q.put('foo')
     self.assertEqual(q.get(), 'foo')
Beispiel #4
0
 def test_handles_normal_put_get_requests(self):
     q = ShutdownQueue()
     q.put('foo')
     self.assertEqual(q.get(), 'foo')