'discrete_rv: Q attributes updates on q change?'

def test_Q_updates(self):

    Q_init = np.copy(self.drv.Q)
    x = np.random.rand(10)
    x /= x.sum()
    self.drv.q = x
    Q_after = self.drv.Q
    self.assertFalse(np.allclose(Q_init, Q_after))
    self.drv.q = self.x
    assert_allclose(Q_init, self.drv.Q)
