예제 #1
0
class MantelTests(TestCase):
    """Tests for the Mantel class."""

    def setUp(self):
        """Define some sample data that will be used by the tests."""
        self.inst = Mantel()

        self.mantel_results_str1 = mantel_results_str1.split('\n')

    def test_parse(self):
        """Test parsing mantel results file."""
        obs = self.inst.parse(self.mantel_results_str1)
        self.assertFloatEqual(obs, (1.0, 0.01))
예제 #2
0
    def setUp(self):
        """Define some sample data that will be used by the tests."""
        self.inst = Mantel()

        self.mantel_results_str1 = mantel_results_str1.split('\n')