def test_hierarchy_with_inheritance(self): self.assertEqual(list(unique_everseen(WeirdPkBucket.get_templates_hierarchy(template_name='test'))), [ 'widgy/core_tests/weirdpkbucket/test.html', 'widgy/core_tests/weirdpkbucketbase/test.html', 'widgy/core_tests/weirdpkbase/test.html', 'widgy/widgy/content/test.html', 'widgy/core_tests/test.html', 'widgy/widgy/test.html', 'widgy/test.html', ])
def test_hierarchy_involving_non_model_mixins(self): self.assertEqual(list(unique_everseen(MyInvisibleBucket.get_templates_hierarchy(template_name='test'))), [ 'widgy/core_tests/myinvisiblebucket/test.html', 'widgy/mixins/invisible/test.html', 'widgy/widgy/content/test.html', 'widgy/core_tests/test.html', 'widgy/mixins/test.html', 'widgy/widgy/test.html', 'widgy/test.html', ])