def test_init_w_emb(self): with patch.multiple(self.nnbs, _params=[], ndim=3): self.nnbs._init_w_emb() assert len(self.nnbs._params) == 1