               [:post "/post-note"]
               {:session session-key
                :note note
-               :signature (get-signature session-key note)}) 302))
+               :signature (sign session-key note)}) 302))
       (is (note-exists? (build-key date title)))
       (is (substring? "знать" ((send-request (url year month day title)) :body)))
       (is (do


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

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

            (not (note-exists? (build-key date title))))))))

(deftest note-update
  (let [session-key "somemd5hash"
        date (get-date)
        title "this-is-a-test-note"
        [year month day] date
        hash (sign session-key test-note)]
    (testing "Note update"
      (is (has-status
            (send-request
