summaryrefslogtreecommitdiff
path: root/test/input/func_w0223.py
blob: 5d380cc34a9aa90832b3f9d7c43dbb250ae56c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# pylint: disable=R0903,R0922
"""test overriding of abstract method
"""
from __future__ import print_function
__revision__ = '$Id: func_w0223.py,v 1.2 2004-09-29 08:35:13 syt Exp $'

class Abstract(object):
    """abstract class
    """
    def aaaa(self):
        """should be overridden in concrete class"""
        raise NotImplementedError()


    def bbbb(self):
        """should be overridden in concrete class"""
        raise NotImplementedError()

    def __init__(self):
        pass

class AbstractB(Abstract):
    """abstract class
    this class is checking that it does not output an error msg for
    unimplemeted methods in abstract classes
    """
    def cccc(self):
        """should be overridden in concrete class"""
        raise NotImplementedError()

class Concret(Abstract):
    """concret class"""

    def aaaa(self):
        """overidden form Abstract"""
        print(self)