def test_alertLv1(self): main = MainClass() testAircraft = Aircraft(60000, 60000, 8000, 50, 30, 40, 0, 1) testAircraft.calcAlertLevel(main.ownShip) self.assertEquals(testAircraft.getAlertLevel(), 1)
def test_alertLv1(self): main = MainClass() testAircraft = Aircraft(60000,60000,8000,50,30,40,0,1) testAircraft.calcAlertLevel(main.ownShip) self.assertEquals(testAircraft.getAlertLevel(), 1)
def test_alertLv3(self): main = MainClass() testAircraft = Aircraft(0, 35000, 2500, 180, 0, 200, 0, 1) testAircraft.calcAlertLevel(main.ownShip) self.assertEquals(testAircraft.getAlertLevel(), 3)
def test_alertLv3(self): main = MainClass() testAircraft = Aircraft(0,35000,2500,180,0,200,0,1) testAircraft.calcAlertLevel(main.ownShip) self.assertEquals(testAircraft.getAlertLevel(), 3)