def test_transact_with_stuff(self): receiver_id = yield self._transact_with_stuff() # now check data actually written store = transact.get_store() self.assertEqual( store.find(Receiver, Receiver.id == receiver_id).count(), 1)
def test_transact_with_stuff(self): receiver_id = yield self._transact_with_stuff() # now check data actually written store = transact.get_store() self.assertEqual(store.find(Receiver, Receiver.id == receiver_id).count(), 1)
def test_transact_with_stuff_failing(self): receiver_id = yield self._transact_with_stuff_failing() store = transact.get_store() self.assertEqual( list(store.find(Receiver, Receiver.id == receiver_id)), [])
def test_transact_with_stuff_failing(self): receiver_id = yield self._transact_with_stuff_failing() store = transact.get_store() self.assertEqual(list(store.find(Receiver, Receiver.id == receiver_id)), [])