def test_calculate_points_actual(self): a = Series(0, 18.9, 2) self.assertEqual(11, a.calculate_points())
def test_calculate_full_scale_points(self): a = Series(1, 1.5, 0.5) self.assertEqual(2, a.calculate_points())
def test_calculate_points_scale_not_full_numbers(self): a = Series(0.31, 5.5, 2) self.assertEqual(4, a.calculate_points())
def test_calculate_points_scale23(self): a = Series(0, 5, 2) self.assertEqual(4, a.calculate_points())
def test_calculate_points_scale05(self): a = Series(0, 2, 0.5) self.assertEqual(5, a.calculate_points())
def test_calculate_points_scale2(self): a = Series(0, 2, 2) self.assertEqual(2, a.calculate_points())
def test_calculate_points01(self): a = Series(0, 1, 0.1) self.assertEqual(11, a.calculate_points())