def tearDown(self): i.close_acc() i.trans('TM_BANK') i.idle() super(AccountTestCase, self).tearDown()
def up_to_idle(): up_to_trans() return i.idle()
def tearDown(self): i.trans('TM_CASH') i.idle() i.sign_off()
def test_invalid_idle(self): expected = "531 Invalid account state\n" up_to_close() response = i.idle() return self.assertEqual(expected, response)