Beispiel #1
0
def up_to_close():
    i.open_acc()
    return i.close_acc()
Beispiel #2
0
 def test_wierd_stuff(self):
     i.art_reg(59922827, 0)
     i.art_reg_empty()
     response = i.close_acc()
     return self.assertEqual(response, "240 0,00 Transaction succeeded\n")
Beispiel #3
0
 def tearDown(self):
     i.close_acc()
     i.trans('TM_BANK')
     i.idle()
     super(AccountTestCase, self).tearDown()
Beispiel #4
0
 def test_valid_below(self):
     i.art_reg(59922827, 1)
     i.close_acc()
     response = i.trans('TM_BANK', 3)
     return self.assertEqual(response, "240 3,99 Transaction succeeded\n")
Beispiel #5
0
 def test_valid_exact(self):
     i.art_reg(59922827, 1)
     i.close_acc()
     response = i.trans('TM_BANK', 6, 99)
     return self.assertEqual(response, "240 0,00 Transaction succeeded\n")
Beispiel #6
0
 def test_valid_above(self):
     i.art_reg(59922827, 1)
     i.close_acc()
     response = i.trans('TM_BANK', 20)
     return self.assertEqual(response, "240 -13,01 Transaction succeeded\n")
Beispiel #7
0
 def test_valid_neg_699(self):
     i.art_reg(59922827, 1)
     i.close_acc()
     response = i.trans('TM_CASH', -10)
     return self.assertEqual(response, "240 16,99 Transaction succeeded\n")
Beispiel #8
0
 def test_valid_negamnt(self):
     i.close_acc()
     response = i.trans('TM_BANK', -10)
     return self.assertEqual(response, "542 FI AMOUNT Transaction failed\n")
Beispiel #9
0
 def test_invalid_method2(self):
     i.close_acc()
     response = i.trans('TM_CASHasd123')
     return self.assertEqual(response, "540 No Such Transaction method\n")
Beispiel #10
0
 def test_valid_mthd(self):
     i.close_acc()
     response = i.trans('TM_BANK')
     return self.assertEqual(response, "240 0,00 Transaction succeeded\n")