

def test_init(self):
    '\n        Test the creation of beta nodes.\n        '
    p = Beta([1.5, 4.2])
    p = Beta([2, 3], plates=(4, 3))
    self.assertEqual(p.plates, (4, 3))
    p = Beta(np.ones((4, 3, 2)))
    self.assertEqual(p.plates, (4, 3))
    self.assertRaises(ValueError, Beta, 4)
    self.assertRaises(ValueError, Beta, [4])
    self.assertRaises(ValueError, Beta, [4, 4, 4])
    self.assertRaises(ValueError, Beta, [(- 2), 3])
    p.assertRaises(ValueError, Beta, np.ones((4, 2)), plates=(3,))
    self.assertRaises(ValueError, Beta, np.ones((4, 2)), plates=(1,))
    pass

dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_beta.py TestBeta.test_init/VarMisuse@149/189 `self`->`p`