             [clj-time.core                       :refer [seconds ago before? date-time] :as tc]
 
             [clojurewerkz.cassaforte.cql         :refer :all]
-
-            [clojure.test                        :refer :all]
-            [clojurewerkz.cassaforte.query       :as query]
-            ))
+            [clojure.test                        :refer :all]))
 
 
 (use-fixtures :each with-temporary-keyspace)

                                           "Message 8" "Message 9"]]
                            [>= :created_at (-> (date-time 2014 11 17 23 6)
                                                .toDate
                                                query/min-timeuuid)]
                            [<= :created_at (-> (date-time 2014 11 17 23 8)
                                                .toDate
                                                query/max-timeuuid)]]))]
    (is (= #{"Message 6" "Message 7" "Message 8"}
           (set (map :message xs))))))


  (let [dt (-> 2 seconds ago)]
    (dotimes [i 20]
      (insert *session* :events
              {:created_at (now)
               :message (format "Message %d" i)}))
    (let [xs  (select *session* :events
                      (date-of :created_at)
                      (limit 5))
          dt' (cc/from-date (get (first xs) (keyword "dateOf(created_at)")))]
      (is (before? dt dt')))))
