def test_info_methods_exclude_expected_paths(): lol = TestTemplateModel() paths = tuple(x['path'] for x in lol.get_template_info()) assert 'registration/password_reset_subject.txt' in paths paths2 = tuple(x['path'] for x in lol.get_another_template_info()) assert 'registration/password_reset_subject.txt' not in paths2
def test_info_methods_return_expected_lengths(): lol = TestTemplateModel() assert len(lol.get_template_info()) == 38 assert len(lol.get_another_template_info()) == 37