def METHOD_NAME(self):
    status = create_bag_by_irods(self.test_res.short_id)
    self.assertTrue(status)
    # test checksum will be computed for published resource
    self.test_res.raccess.published = True
    self.test_res.raccess.save()
    status = create_bag_by_irods(self.test_res.short_id)
    self.assertTrue(status)
    res = get_resource_by_shortkey(self.test_res.short_id)
    self.assertNotEqual(res.bag_checksum, '', msg='bag_checksum property is empty')
    self.test_res.raccess.published = False
    self.test_res.raccess.save()
    hs_bagit.delete_files_and_bag(self.test_res)
    # resource should not have any bags
    istorage = self.test_res.get_irods_storage()
    bag_path = self.test_res.bag_path
    self.assertFalse(istorage.exists(bag_path))