def setUp(self):

        self.yaw = YawSystemCost()

        self.yaw.yaw_system_mass = 11878.24
        self.yaw.year = 2009
        self.yaw.month = 12
    def test1(self):

        yaw = YawSystemCost()

        yaw.yaw_system_mass = 11878.24
        yaw.year = 2009
        yaw.month = 12

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

        yaw = YawSystemCost()

        yaw.yaw_system_mass = 11878.24
        yaw.year = 2009
        yaw.month = 12

        check_gradient_unit_test(self, yaw)
class TestYawSystemCost(unittest.TestCase):

    def setUp(self):

        self.yaw = YawSystemCost()

        self.yaw.yaw_system_mass = 11878.24
        self.yaw.year = 2009
        self.yaw.month = 12

    def test_functionality(self):
    
        self.yaw.run()
        
        self.assertEqual(round(self.yaw.cost,2), 137698.39)

    def test_gradient(self):

        check_gradient_unit_test(self, self.yaw)