1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
"""Fixture: a small, domain-neutral Python file exercising class, method, free-function, and constant extraction.""" MAX_RETRIES = 3 default_currency = "XYZ" class Account: DEFAULT_BALANCE = 0 def deposit(self, amount): return amount def withdraw(self, amount): return amount def build_account(): return Account() def max_retries_for(account): return MAX_RETRIES