def testDirectDrive(self):
    self.myobj = gb.Gearbox(direct_drive=True)
    self.myobj.compute(self.inputs, self.outputs, self.discrete_inputs, self.discrete_outputs)
    npt.assert_equal(self.outputs['stage_ratios'], 0.0)
    self.assertEqual(self.outputs['gearbox_mass'], 0.0)
    npt.assert_equal(self.outputs['gearbox_I'], 0.0)
    self.assertEqual(self.outputs['L_gearbox'], 0.0)
    self.assertEqual(self.outputs['D_gearbox'], 0.0)
def testDirectDrive(self):
    self.myobj = gb.Gearbox(direct_drive=True)
    self.myobj.compute(self.inputs, self.outputs, self.discrete_inputs, self.discrete_outputs)
    npt.assert_equal(self.outputs['stage_ratios'], 0.0)
    self.assertEqual(self.outputs['gearbox_mass'], 0.0)
    npt.assert_equal(self.outputs['gearbox_I'], 0.0)
    self.assertEqual(self.outputs['L_gearbox'], 0.0)
    self.assertEqual(self.outputs['D_gearbox'], 0.0)