class Config_A(test.Case):
def insert(self, protocol_id):
...
...
class Config_B(test.Case):
...
....
....
def test_somecase(self):
self.insert(10)
Here def insert() is a common method, which is required by multiple classes. From class Config_B, its not able to access the definition of insert() defined in Config_A. One solution is that, define it in Config_B and make use of. But it's a duplication of code. How can we do this without writing duplicate code?