def test_newly_created_conversation_with_original_record( self, mock_publish_event): handle_conversation_after_save(self.record(), self.original_record(), self.conn) self.assertIs(mock_publish_event.call_count, 3)
def test_newly_created_conversation_with_original_record( self, mock_publish_event): handle_conversation_after_save( self.record(), self.original_record(), self.conn) self.assertIs(mock_publish_event.call_count, 3)
def test_newly_created_conversation(self, mock_publish_event): handle_conversation_after_save(self.record(), None, self.conn) self.assertIs(mock_publish_event.call_count, 2)