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

Method test_instance_three

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

Source from the content-addressed store, hash-verified

2085 eq_(account.balance.as_currency("gbp").amount, Decimal("2515.58"))
2086
2087 def test_instance_three(self):
2088 BankAccount, Amount = self.BankAccount, self.Amount
2089 account = BankAccount(balance=Amount(4000, "usd"))
2090
2091 # 3d. perform currency-agnostic comparisons, math
2092 is_(account.balance > Amount(500, "cad"), True)
2093
2094 def test_instance_four(self):
2095 BankAccount, Amount = self.BankAccount, self.Amount

Callers

nothing calls this directly

Calls 3

is_Function · 0.90
BankAccountClass · 0.85
AmountClass · 0.85

Tested by

no test coverage detected