def setUp(self):

        self.hss = HighSpeedSideCost()

        self.hss.high_speed_side_mass = 1492.45
        self.hss.year = 2009
        self.hss.month = 12
    def test1(self):

        hss = HighSpeedSideCost()

        hss.high_speed_side_mass = 1492.45
        hss.year = 2009
        hss.month = 12

        check_gradient_unit_test(self, hss)
    def test1(self):

        hss = HighSpeedSideCost()

        hss.high_speed_side_mass = 1492.45
        hss.year = 2009
        hss.month = 12

        check_gradient_unit_test(self, hss)
class TestHighSpeedSideCost(unittest.TestCase):

    def setUp(self):

        self.hss = HighSpeedSideCost()

        self.hss.high_speed_side_mass = 1492.45
        self.hss.year = 2009
        self.hss.month = 12

    def test_functionality(self):
    
        self.hss.run()
        
        self.assertEqual(round(self.hss.cost,2), 15218.23)

    def test_gradient(self):

        check_gradient_unit_test(self, self.hss)