def METHOD_NAME(self):
    with tempfile.TemporaryDirectory() as tmp_dir:
        # create dummy data
        dict_file = osp.join(tmp_dir, 'fake_chars.txt')
        create_dummy_dict_file(dict_file)
        dict_gen = Dictionary(dict_file=dict_file)
        assert dict_gen.num_classes == 36