@@ -19,7 +19,7 @@ async def asyncTearDown(self) -> None:
1919 async def test_signup (self ) -> None :
2020 await self .rbt .up (servicers = [BankServicer , AccountServicer ])
2121 context = self .rbt .create_external_context (name = f"test-{ self .id ()} " )
22- bank = Bank .lookup ("my-bank" )
22+ bank = Bank .ref ("my-bank" )
2323
2424 # The Bank state machine doesn't have a constructor, so we can simply
2525 # start calling methods on it.
@@ -29,25 +29,25 @@ async def test_signup(self) -> None:
2929 )
3030
3131 # SignUp will have created an Account we can call.
32- account = Account .lookup (response .account_id )
32+ account = Account .ref (response .account_id )
3333 response = await account .Balance (context )
3434 self .assertEqual (response .balance , 0 )
3535
3636 async def test_transfer (self ):
3737 await self .rbt .up (servicers = [BankServicer , AccountServicer ])
3838 context = self .rbt .create_external_context (name = f"test-{ self .id ()} " )
39- bank = Bank .lookup ("my-bank" )
39+ bank = Bank .ref ("my-bank" )
4040
4141 alice : SignUpResponse = await bank .SignUp (
4242 context ,
4343 customer_name = "Alice" ,
4444 )
45- alice_account = Account .lookup (alice .account_id )
45+ alice_account = Account .ref (alice .account_id )
4646 bob : SignUpResponse = await bank .SignUp (
4747 context ,
4848 customer_name = "Bob" ,
4949 )
50- bob_account = Account .lookup (bob .account_id )
50+ bob_account = Account .ref (bob .account_id )
5151
5252 # Alice deposits some money.
5353 await alice_account .Deposit (context , amount = 100 )
0 commit comments