Skip to content
Snippets Groups Projects
Commit 45d9e0e5 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

+tests

parent b2fecb5d
No related branches found
No related tags found
No related merge requests found
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 Piotr Maślanka Copyright (c) 2016 DMS Serwis s.c.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
...@@ -25,13 +25,13 @@ class MyTestCase(unittest.TestCase): ...@@ -25,13 +25,13 @@ class MyTestCase(unittest.TestCase):
self.assertIsInstance(p, MessageReceived) self.assertIsInstance(p, MessageReceived)
self.assertEquals(p.message.body, b'what the fuck') self.assertEquals(p.message.body, b'what the fuck')
# def test_consumer_cancelled_on_queue_deletion(self): def test_consumer_cancelled_on_queue_deletion(self):
# myq = Queue('myqueue', exclusive=True) myq = Queue('myqueue', exclusive=True)
#
# self.amqp.consume(myq) self.amqp.consume(myq)
# self.amqp.delete_queue(myq) self.amqp.delete_queue(myq)
#
# self.assertIsInstance(self.amqp.drain(wait=10), ConsumerCancelled) self.assertIsInstance(self.amqp.drain(wait=10), ConsumerCancelled)
def test_consumer_cancelled_on_consumer_cancel(self): def test_consumer_cancelled_on_consumer_cancel(self):
myq = Queue('myqueue', exclusive=True) myq = Queue('myqueue', exclusive=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment