def METHOD_NAME(self):
    account = BankAccount()
    account.open()
    with self.assertRaises(ValueError) as err:
        account.deposit(-50)
    self.assertEqual(type(err.exception), ValueError)
    self.assertEqual(err.exception.args[0], "amount must be greater than 0")