                   (t/->Artifact "clojure")
                   (t/->Version "1.6.0")
                   (t/->Platform "clj"))
-        ?res (-> test-config
-                 (api/list-namespaces v))]
+        ?res (api/list-namespaces test-config v)]
     (is (succeed? ?res))
     (doseq [?ns (result ?res)]
       (is (t/namespace? ?ns)))))

(deftest list-versions-test
  (let [a    (-> (t/->Group "org.clojure")
                 (t/->Artifact "clojure"))
        ?res (-> test-config
                 (api/list-versions a))]
    (is (succeed? ?res))
    (doseq [?v (result ?res)]
      (is (t/version? ?v)))))

                 (t/->Version "1.6.0")
                 (t/->Platform "clj")
                 (t/->Ns "clojure.core"))
        ?res (api/thing->prior-versions test-config ns)]
    (is (succeed? ?res))
    (is (= #{"1.6.0" "1.5.0" "1.4.0"}
           (->> ?res result (map (comp t/thing->name t/thing->version)) set)))))
