def METHOD_NAME(self, mock_update):
    # Set attribute for node
    self.condorpyworkflow.update_database_fields()
    # Check if mock is called twice for node and child node
    self.assertTrue(mock_update.call_count == 2)