def setUp(self):

        self.lss = LowSpeedShaftCost()

        self.lss.low_speed_shaft_mass = 31257.3
        self.lss.year = 2009
        self.lss.month = 12
    def test1(self):

        lss = LowSpeedShaftCost()

        lss.low_speed_shaft_mass = 31257.3
        lss.year = 2009
        lss.month = 12

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

        lss = LowSpeedShaftCost()

        lss.low_speed_shaft_mass = 31257.3
        lss.year = 2009
        lss.month = 12

        check_gradient_unit_test(self, lss)
class TestLowSpeedShaftCost(unittest.TestCase):

    def setUp(self):

        self.lss = LowSpeedShaftCost()

        self.lss.low_speed_shaft_mass = 31257.3
        self.lss.year = 2009
        self.lss.month = 12

    def test_functionality(self):
    
        self.lss.run()
        
        self.assertEqual(round(self.lss.cost,2), 183363.66) 

    def test_gradient(self):

        check_gradient_unit_test(self, self.lss)