'Tests that attempting to create a subclass that overrides a final
method will raise a `TypeError` even if you mark the new version as
final.'

def test_override_final_with_decorator(self):

    with self.assertRaises(TypeError):
        class SubClass(self.class_, ):
            @final
            def f(self):
                return 'SubClass:    f'
