                   [:post "/post-note"]
                   {:session session-key
                    :note test-note
-                   :signature (get-signature session-key test-note)})]
+                   :signature (sign session-key test-note)})]
         (is (has-status resp 302))
         (is (note-exists? (build-key date title)))
         (is (substring? "Hello _world_"

      (is (has-status (send-request "/") 200) "accessing landing page"))))


   )


(deftest test-app
  (testing "main route"
    (let [response (app (request :get "/"))]


(deftest export-test
  (testing "Markdown export"
    (is (= (:body (send-request (url 2012 6 3 "some-title" "export"))) test-note))))

(deftest note-creation
  (let [session-key "somemd5hash"
        date (get-date)
        title "this-is-a-test-note"
        [year month day] date]
