def test_1(self): self.assertEqual(elevator('(())'), 0)
def test_2(self): self.assertEqual(elevator('()()'), 0)
def test_8(self): self.assertEqual(elevator(')))'), -3)
def test_9(self): self.assertEqual(elevator(')())())'), -3)
def test_7(self): self.assertEqual(elevator('))('), -1)
def test_6(self): self.assertEqual(elevator('())'), -1)
def test_5(self): self.assertEqual(elevator('))((((('), 3)
def test_4(self): self.assertEqual(elevator('(()(()('), 3)
def test_3(self): self.assertEqual(elevator('((('), 3)