(self, other_currency)
| 2030 | return self.amount == other.as_currency(self.currency).amount |
| 2031 | |
| 2032 | def as_currency(self, other_currency): |
| 2033 | return Amount( |
| 2034 | currency_lookup[(self.currency, other_currency)] |
| 2035 | * self.amount, |
| 2036 | other_currency, |
| 2037 | ) |
| 2038 | |
| 2039 | def __clause_element__(self): |
| 2040 | # helper method for SQLAlchemy to interpret |
no test coverage detected