code: def test_is_all_work_completed(self):
      self.reset_work_pieces()
      # empty set of work is considered completed
      self.assertTrue(self.work_pieces.is_all_work_competed())
      # one completed piece of work - all work completed
      self.work_pieces.work["w11"] = copy.deepcopy(self.work1)
      self.assertTrue(self.work_pieces.is_all_work_competed())
      # two completed pieces of work - all work completed
      self.work_pieces.work["w12"] = copy.deepcopy(self.work1)
      self.assertTrue(self.work_pieces.is_all_work_competed())
      # two completed and one incomplete pieces of work - work not completed
      self.work_pieces.work["w2"] = copy.deepcopy(self.work2)
      self.assertFalse(self.work_pieces.is_all_work_competed())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import unittest
  from six import assertCountEqual
  from six import itervalues
  from eval_lib import work_data
  from eval_lib.tests import fake_cloud_client
label_desc: Use image node_id 6 for calling the WorkPiecesBaseTest obj's underlying member method code with example usage: obj.test_is_all_work_completed() without return types