<reponame>masayas/-Hands-on-Test-Driven-Development-with-Python<filename>tdd_python_code_samples/abc_mock_example/my_abc.py<gh_stars>10-100
from abc import ABC, abstractmethod

class AbstractAdder(ABC):
    @abstractmethod
    def add(self, value1, value2):
        pass

class ConcreteAdder(AbstractAdder):
    def add(self, value1, value2):
        return value1 + value2

def AddExecuter(AbstractAdder):
    return AbstractAdder.add(1, 2)

from abc import ABC, abstractmethod

class AbstractAdder(ABC):
    @abstractmethod
    def add(self, value1, value2):
        pass

class ConcreteAdder(AbstractAdder):
    def add(self, value1, value2):
        return value1 + value2

def AddExecuter(AbstractAdder):
    return AbstractAdder.add(1, 2)