@@ -0,0 +1,1442 @@
+%22%22%22%0ASmoke tests.%0A%0A%22%22%22%0Afrom nose.tools import *%0Afrom nose import SkipTest%0A%0Aimport dit%0Aimport buhmm%0Aimport numpy as np%0A%0Aclass TestSmoke:%0A%0A    def setUp(cls):%0A        global machines%0A        try:%0A            from cmpy import machines%0A        except ImportError:%0A            raise SkipTest('cmpy not available')%0A%0A    def test_pm_uhmm(self):%0A        m = machines.Even()%0A        d = '011110'%0A        x = buhmm.Infer(m, d)%0A        xnew = x.get_updated_prior()%0A%0A        uhmm1 = x.posterior.pm_uhmm('A')%0A        uhmm2 = xnew.posterior.pm_uhmm('A')%0A        np.testing.assert_almost_equal(uhmm1, uhmm2)%0A%0A    def test_predictive_probability(self):%0A        m = machines.Even()%0A        d = '11111'%0A        x = buhmm.Infer(m, d)%0A%0A        m2A = x.pm_machine('A')%0A        fnode = m2A.graph%5B'final_node'%5D%0A        assert_equal(fnode, 'B')%0A        w = '0'%0A        p2A = m2A.probability(w, start=fnode)%0A        assert_almost_equal(p2A, x.predictive_probability(w, 'A'))%0A        w = '1'%0A        p2A = m2A.probability(w, start=fnode)%0A        assert_almost_equal(p2A, x.predictive_probability(w, 'A'))%0A%0A        m2B = x.pm_machine('B')%0A        fnode = m2B.graph%5B'final_node'%5D%0A        assert_equal(fnode, 'A')%0A        w = '0'%0A        p2B = m2B.probability(w, start=fnode)%0A        assert_almost_equal(p2B, x.predictive_probability(w, 'B'))%0A        w = '1'%0A        p2B = m2B.probability(w, start=fnode)%0A        assert_almost_equal(p2B, x.predictive_probability(w, 'B'))%0A

Add some smoke tests.