MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_instance_one

Method test_instance_one

test/ext/test_hybrid.py:2073–2078  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2071 cls.BankAccount = BankAccount
2072
2073 def test_instance_one(self):
2074 BankAccount, Amount = self.BankAccount, self.Amount
2075 account = BankAccount(balance=Amount(4000, "usd"))
2076
2077 # 3b. print balance in usd
2078 eq_(account.balance.amount, 4000)
2079
2080 def test_instance_two(self):
2081 BankAccount, Amount = self.BankAccount, self.Amount

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
BankAccountClass · 0.85
AmountClass · 0.85

Tested by

no test coverage detected