def test_disable(self, monkeypatch): """Test disable method""" monkeypatch.setattr(Gst.Pipeline, '__init__', Mock()) pipeline = BasePipeline() pipeline.set_state = Mock() pipeline.disable()
def test_play(self, monkeypatch): """Test play method""" monkeypatch.setattr(Gst.Pipeline, '__init__', Mock()) pipeline = BasePipeline() pipeline.set_state = Mock() pipeline.play()