示例#1
0
 def test_deselect(self):
     q = Queues()
     q.select(['foo', 'bar'])
     q.deselect('bar')
     assert sorted(keys(q._consume_from)) == ['foo']
 def test_deselect(self):
     q = Queues()
     q.select(['foo', 'bar'])
     q.deselect('bar')
     self.assertItemsEqual(keys(q._consume_from), ['foo'])
示例#3
0
 def test_deselect(self):
     q = Queues()
     q.select(["foo", "bar"])
     q.deselect("bar")
     self.assertItemsEqual(keys(q._consume_from), ["foo"])
示例#4
0
 def test_deselect(self):
     q = Queues()
     q.select(['foo', 'bar'])
     q.deselect('bar')
     assert sorted(keys(q._consume_from)) == ['foo']
示例#5
0
 def test_deselect(self):
     q = Queues()
     q.select(["foo", "bar"])
     q.deselect("bar")
     assert sorted(keys(q._consume_from)) == ["foo"]