def _apply(self, metadata):
    self.apply_called_with = metadata.primary_identifier
    self.apply_call_count += 1
def _apply(self, metadata):
    self.apply_called_with = metadata.primary_identifier
    self.apply_call_count += 1