I would say if we're splitting this into two lines, we may as well test that `queue_counts` is in fact a dict as well.  Otherwise this could blow up.  Having a meaningful message as to why the exception is raised would be good.