def test_size(self): assert virtual.AbstractChannel()._size('queue') == 0
def test_delete(self): with pytest.raises(NotImplementedError): virtual.AbstractChannel()._delete('queue')
def test_new_queue(self): self.assertIsNone(virtual.AbstractChannel()._new_queue("queue"))
def test_put(self): with pytest.raises(NotImplementedError): virtual.AbstractChannel()._put('queue', 'm')
def test_size(self): self.assertEqual(virtual.AbstractChannel()._size("queue"), 0)
def test_delete(self): self.assertRaises(NotImplementedError, virtual.AbstractChannel()._delete, "queue")
def test_poll(self): cycle = Mock(name='cycle') assert virtual.AbstractChannel()._poll(cycle, Mock()) cycle.get.assert_called()
def test_put(self): self.assertRaises(NotImplementedError, virtual.AbstractChannel()._put, "queue", "m")
def test_has_queue(self): assert virtual.AbstractChannel()._has_queue('queue')
def test_new_queue(self): assert virtual.AbstractChannel()._new_queue('queue') is None
def test_has_queue(self): self.assertTrue(virtual.AbstractChannel()._has_queue('queue'))
def test_purge(self): with self.assertRaises(NotImplementedError): virtual.AbstractChannel()._purge('queue')
def test_get(self): with self.assertRaises(NotImplementedError): virtual.AbstractChannel()._get("queue")