# -*- coding: utf-8 -*-

# tests_mcmc.py

# MIT License

# Copyright (c) 2017 Rene Jean Corneille

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import os
import sys
import inspect
import unittest

currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
sys.path.insert(0,parentdir)

from trendpy.mcmc import *

class TestMCMC(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

@@ -1377,12 +1377,14 @@
 r)%0A%0A
-from
+import
  tre
@@ -1396,17 +1396,32 @@
 mcmc
- 
+%0A
 import 
-*
+trendpy.samplers
 %0A%0Acl
@@ -1454,20 +1454,17 @@
 Case):%0A%0A
-    
+%09
 def setU
@@ -1476,55 +1476,578 @@
 f):%0A
-        pass%0A%0A    def tearDown(self):%0A        pass
+%09%09self.s = trendpy.samplers.Sampler()%0A%09%09self.mcmc = trendpy.mcmc.MCMC(self.s)%0A%0A%09def tearDown(self):%0A%09%09self.s = trendpy.samplers.Sampler()%0A%09%09self.mcmc = trendpy.mcmc.MCMC(self.s)%0A%0A%09def test_define_parameters(self):%0A%09%09self.assertEqual(self.s.define_parameters,self.mcmc.sampler.define_parameters)%0A%09%09%0A%09def test_distribution_parameters(self):%0A%09%09self.assertEqual(self.s.distribution_parameters,self.mcmc.sampler.distribution_parameters)%0A%09%09%0A%09def test_generate(self):%0A%09%09self.assertEqual(self.s.generate,self.mcmc.sampler.generate)%0A%09%09%0Aif __name__ == '__main__':%0A    unittest.main()
 %0A

Update tests_mcmc.py