def test_axis_label_incr_length(self): """Test function for axisLabels() 3/3""" with self.assertRaises(ValueError): ds.axisLabels([1., 2., 3., 4.], [1, 2, 3])
def test_axis_label_generation_part2(self): """Test function for axisLabels() 2/3""" ss = ds.axisLabels(self.ran, incr=(15, 10)) r = ['10', '25', '40', '55', '70', '85'] self.assertTrue(r == ss)
def test_axis_label_geneation_part1(self): """Test function for axisLabels() 1/3""" ss = ds.axisLabels(self.ran, incr=10) r = ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90'] self.assertTrue(r == ss)
def test_axis_label_incr_length(self): """Test function for axisLabels() 3/3""" ds.axisLabels([1.0, 2.0, 3.0, 4.0], [1, 2, 3])
def test_axis_label_generation_part2(self): """Test function for axisLabels() 2/3""" ss = ds.axisLabels(self.ran, incr=(15, 10)) r = ["10", "25", "40", "55", "70", "85"] self.assertTrue(r == ss)
def test_axis_label_geneation_part1(self): """Test function for axisLabels() 1/3""" ss = ds.axisLabels(self.ran, incr=10) r = ["0", "10", "20", "30", "40", "50", "60", "70", "80", "90"] self.assertTrue(r == ss)