def test_calculate_pnls_for_single_currency_cash_account(self):
        # Arrange
        event = self._make_account_state(starting_balance=1000.0)
        account = BettingAccount(event)
        fill = self._make_fill(price="0.8", volume=100)
        position = Position(self.instrument, fill)

        # Act
        result = account.calculate_pnls(
            instrument=self.instrument,
            position=position,
            fill=fill,
        )

        # Assert
        assert result == [Money("-80.00", GBP)]
    def test_calculate_pnls_partially_closed(self):
        # Arrange
        event = self._make_account_state(starting_balance=1000.0)
        account = BettingAccount(event)
        fill1 = self._make_fill(price="0.50", volume=100, side="BUY")
        fill2 = self._make_fill(price="0.80", volume=100, side="SELL")

        position = Position(self.instrument, fill1)
        position.apply(fill2)

        # Act
        result = account.calculate_pnls(
            instrument=self.instrument,
            position=position,
            fill=fill2,
        )

        # Assert
        # TODO - this should really be 75 GBP given the position (but we are currently not using position?)
        # assert result == [Money("75.00", GBP)]
        assert result == [Money("80.00", GBP)]