ModelBilling without tokenPrices leaves token_prices unset.
(self)
| 1210 | assert billing.to_dict() == wire |
| 1211 | |
| 1212 | def test_token_prices_absent(self): |
| 1213 | """ModelBilling without tokenPrices leaves token_prices unset.""" |
| 1214 | billing = ModelBilling.from_dict({"multiplier": 1.0}) |
| 1215 | assert billing.token_prices is None |
| 1216 | assert billing.to_dict() == {"multiplier": 1.0} |
| 1217 | |
| 1218 | def test_token_prices_empty_object_round_trip(self): |
| 1219 | """ModelBilling preserves present but empty tokenPrices.""" |