'Helper to verify that the staff lock source of a given item matches the expected source'

def _verify_staff_lock_source(self, item, expected_source):

    source = utils.find_staff_lock_source(item)
    self.assertEqual(source.location, expected_source.location)
    self.assertTrue(source.visible_to_staff_only)
