def test_dropBomb(self): """ You can drop bombs on the board, which uses up one of the bombs until it explodes. """ board, clock = bnc() board.generate(5,5) pawn = Pawn() pawn.fuse = 3 board.insertPawn((0,0), pawn) pawn.dropBomb() self.assertEqual(pawn.bombs, 0, "Should use up a bomb") self.assertTrue((0,0) in board.bombs, "Bomb should be on" " the board") clock.advance(3) self.assertEqual(pawn.bombs, 1, "Should get the bomb back") self.assertFalse((0,0) in board.bombs)