def process_client(name, email): event_store = store() client = Client() client.create_client(name, email) event_store.save(client.id, client.changes) return client.id
def test_create_client(self): c = Client() c.create_client('testName', '*****@*****.**') self.assertEquals(len(c.changes), 1)
def test_load_client(self): c = Client() c.create_client('testName', '*****@*****.**') load_client = Client(c.changes) self.assertEquals(load_client.id, c.id)