def test_train(self): with patch.multiple(self.ds, implicit=Mock(), explicit=Mock()): self.ds.train(None)