def test_init(self):

        # Some simple initializations
        p = Dirichlet([1.5, 4.2, 3.5])

        # Check that plates are correct
        p = Dirichlet([2, 3, 4], plates=(4,3))
        self.assertEqual(p.plates,
                         (4,3))
        p = Dirichlet(np.ones((4,3,5)))
        self.assertEqual(p.plates,
                         (4,3))

        # Parent not a vector
        self.assertRaises(ValueError,
                          Dirichlet,
                          4)
        
        # Parent vector has invalid values
        self.assertRaises(ValueError,
                          Dirichlet,
                          [-2,3,1])

        # Plates inconsistent
        self.assertRaises(ValueError,
                          Dirichlet,
                          np.ones((4,3)),
                          plates=(3,))

        # Explicit plates too small
        self.assertRaises(ValueError,
                          Dirichlet,
                          np.ones((4,3)),
                          plates=(1,))

        pass
The arrival of a second NEWCONSENSUS event causes parsing
dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_dirichlet.py/TestDirichlet.test_init--crossover with--dataset/ETHPy150Open meejah/txtorcon/test/test_torstate.py/StateTests.test_NEWCONSENSUS_ends_with_OK_on_w