from unittest import TestCase
from reconcile import reconcile

class Tests(TestCase):
    def test_single(self):
        self.assertEqual(reconcile([
            {"vendor": "A", "invoice": "17", "revision": 1, "status": "ok", "amount": "4"}
        ]), {"A": "4.00"})
