(self)
| 40 | return sum(s.shares * s.price for s in self._holdings) |
| 41 | |
| 42 | def tabulate_shares(self): |
| 43 | from collections import Counter |
| 44 | total_shares = Counter() |
| 45 | for s in self._holdings: |
| 46 | total_shares[s.name] += s.shares |
| 47 | return total_shares |
| 48 | |
| 49 | |
| 50 |
nothing calls this directly
no outgoing calls
no test coverage detected