def METHOD_NAME(self):
    with TemporaryDirectory() as d:
        self.create_fake_directory(d)
        with io.open(os.path.join(d, IL_SUMMARIES_FILE), 'w', encoding='utf-8') as f:
            f.writelines([
                '1,leccalc_foo,TRUE\n',
                '1,leccalc_bar,FALSE\n',
                '1,another,FALSE\n',
                '2,leccalc_boo,FALSE\n',
                '2,leccalc_far,TRUE\n',
                '2,different,TRUE\n',
            ])
        data = json.loads(create_analysis_settings_json(d))
        self.assertEqual(data['il_summaries'], [
            {'id': 1, 'another': False, 'leccalc': {'leccalc_foo': True, 'leccalc_bar': False}},
            {'id': 2, 'different': True, 'leccalc': {'leccalc_boo': False, 'leccalc_far': True}},
        ])