lighthouse/lighthouse — pull request #20 by robertsheehy-wf (2014-11-20 15:02:14+00:00)
Title: General Unit Tests

## What
Some unit tests for a few packages in Lighthouse.

## Try it
```go test $GOPATH/github.com/lighthouse/lighthouse/...``` or ```go test ./...``` depending where you are.

## Notes
I didn't get 100% coverage, but I tackled most of the basic functions. A big pain point right now for me is, not being able to easily Mock/Patch functions as dynamically as I'm used to in python :(. I'm also having trouble testing functions that utilize the database. I tried using [go-sqlmock](https://github.com/DATA-DOG/go-sqlmock), but I was getting back false positives from the asserts, which was frustrating.