def setUp(self):

        self.bedplate = BedplateCost()

        self.bedplate.bedplate_mass = 93090.6
        self.bedplate.year = 2009
        self.bedplate.month = 12
    def test1(self):

        bedplate = BedplateCost()

        bedplate.bedplate_mass = 93090.6
        bedplate.year = 2009
        bedplate.month = 12

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

        bedplate = BedplateCost()

        bedplate.bedplate_mass = 93090.6
        bedplate.year = 2009
        bedplate.month = 12

        check_gradient_unit_test(self, bedplate)
class TestBedplateCost(unittest.TestCase):

    def setUp(self):

        self.bedplate = BedplateCost()

        self.bedplate.bedplate_mass = 93090.6
        self.bedplate.year = 2009
        self.bedplate.month = 12

    def test_functionality(self):
    
        self.bedplate.run()
        
        self.assertEqual(round(self.bedplate.cost,2), 138167.19)

    def test_gradient(self):

        check_gradient_unit_test(self, self.bedplate)