#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_create_appservice_txn_up_to_date_last_txn( self ) : #NEWLINE# #INDENT# service = Mock ( id = self . as_list [ 0 ] [ 'id' ] ) #NEWLINE# events = [ Mock ( event_id = 'e1' ) , Mock ( event_id = 'e2' ) ] #NEWLINE# ( yield self . _set_last_txn ( service . id , 9643 ) ) #NEWLINE# txn = ( yield self . store . create_appservice_txn ( service , events ) ) #NEWLINE# self . assertEquals ( txn . id , 9644 ) #NEWLINE# self . assertEquals ( txn . events , self ) #NEWLINE# self . assertEquals ( txn . service , service )