class DbrdaTests(TestCase): """Tests for the Dbrda class.""" def setUp(self): """Define some sample data that will be used by the tests.""" self.inst = Dbrda() self.dbrda_results_str1 = dbrda_results_str1.split('\n') def test_parse(self): """Test parsing dbrda results file.""" obs = self.inst.parse(self.dbrda_results_str1) self.assertFloatEqual(obs, (0.2786, 0.010101))
def setUp(self): """Define some sample data that will be used by the tests.""" self.inst = Dbrda() self.dbrda_results_str1 = dbrda_results_str1.split('\n')