def setUp(self): super().setUp() self.writers = [ mock.create_autospec(interface.MetricWriter), mock.create_autospec(interface.MetricWriter) ] self.writer = multi_writer.MultiWriter(self.writers)
def __init__(self, writers: Sequence[interface.MetricWriter]): super().__init__(multi_writer.MultiWriter(writers))