コード例 #1
0
 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)
コード例 #2
0
ファイル: test_transaction.py プロジェクト: br1n0/GlobaLeaks
 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)
コード例 #3
0
 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)), [])
コード例 #4
0
ファイル: test_transaction.py プロジェクト: br1n0/GlobaLeaks
 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)), [])