'Assert that `count` items have been queued in queue `name`.
If count is none, just asserts that at least one item has been added
to that queue'

def assert_item_count(self, name, count=None):

    if (count is None):
        self.test_cls.assertTrue(bool(self.queue.get(name)))
    else:
        err = ('expected    %d    events    in    queue,    saw    %d' % (count, len(self.queue)))
        assert (len(self.queue) == count), err
