I have one abstract class
class Model:
model_data: ModelData = None
def write(self):
raise NotImplementedError("write() must be implemented by {}".format(type(self).__name__))
def read(self):
raise NotImplementedError("read() must be implemented by {}".format(type(self).__name__))
I wonder how should I write the unit test using pytest for the read and write methods within this abstract class.