<commit_before><commit_msg>Actually add log test<commit_after>import unittest
import vapoursynth as vs

class LogTestSequence(unittest.TestCase):

    def setUp(self):
        self.core = vs.core      
        self.handle = self.core.add_log_handler(lambda message_type, message : print(str(message_type) + ' ' + message))

        
    ##########################################################################
    # Tests start here

    def test_log(self):
        self.core.log_message(vs.MESSAGE_TYPE_INFORMATION, 'hello!')
        self.core.remove_log_handler(self.handle)
        self.handle = None
        self.core.log_message(vs.MESSAGE_TYPE_INFORMATION, 'not hello!')

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.19696969696969696, 'fraction_numerical': 0.0, 'mean_word_length': 3.720779220779221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1600003', 'n_tokens_mistral': 220, 'n_tokens_neox': 208, 'n_words': 38}