示例#1
0
class PermdispTests(TestCase):
    """Tests for the Permdisp class."""

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

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

    def test_parse(self):
        """Test parsing permdisp results file."""
        obs = self.inst.parse(self.permdisp_results_str1)
        self.assertFloatEqual(obs, (2.0989, 0.131))
示例#2
0
    def setUp(self):
        """Define some sample data that will be used by the tests."""
        self.inst = Permdisp()

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