'Tests overriding on the class that has the @final methods in it.'

def test_override_on_super(self):

    old_a = self.class_.a
    old_f = self.class_.f
    try:
        with self.assertRaises(TypeError):
            self.class_.f = (lambda *args: None)
    except Exception:
        self.class_.f = old_f
        raise
    try:
        with self.assertRaises(TypeError):
            self.class_.a = 'SubClass:    a'
    except Exception:
        self.class_.a = old_a
        raise
