def test_format(self):
    q = self.q_class(loop=self.loop)
    self.assertEqual(q._format(), 'maxsize=0')
    q._unfinished_tasks = 2
    self.assertEqual(q._format(), 'maxsize=0 tasks=2')
def test_format(self):
    q = self.q_class(loop=self.loop)
    self.assertEqual(q._format(), 'maxsize=0')
    q._unfinished_tasks = 2
    self.assertEqual(q._format(), 'maxsize=0 tasks=2')