               {:name "Checking"
                :type :asset}]
    :commodities [{:name "Apple, Inc."
-                  :symbol "APPL"
+                  :symbol "AAPL"
                   :exchange :nasdaq}]
    :transactions [{:transaction-date (t/local-date 2016 1 1)
                    :description "Opening balance"

                                         :created-at
                                         :updated-at)))
        expected [{:transaction-date (t/local-date 2017 3 2)
                   :description "Sell 100 shares of APPL at 8.500"
                   :action :debit
                   :account-id (:id capital-loss)
                   :amount 150M
                   :memo "Sell 100 shares of APPL at 8.50"
                   :balance 150M
                   :index 0}]]
    (is (= expected gains-items) "The capital loss account is credited the correct amount")))

                                         :created-at
                                         :updated-at)))
        expected [{:transaction-date (t/local-date 2017 3 1)
                   :description "Sell 25 shares of AAPL at 15.000"
                   :action :credit
                   :account-id (:id st-capital-gains)
                   :amount 125M
                   :memo "Sell 25 shares of AAPL at 15.00"
                   :balance 125M
                   :index 0}]]
    (is (= expected gains-items) "The capital gains account is credited the correct amount")))
