Exemplo n.º 1
0
 def test_1(self):
     sol = Solution()
     transations = [(12, 'A', ('A', 'B', 'C')), (10, 'B', ('A', 'B'))]
     res = sol.get_balance(transations)
     print res
Exemplo n.º 2
0
 def test_2(self):
     sol = Solution()
     transations = [(12, 'A', ('A', 'B', 'C')), (10, 'B', ('A', 'B'))]
     balance_dct = sol.get_balance(transations)
     res = sol.get_due(balance_dct)
     print res