freedomofpress/securedrop — pull request #65 by garrettr (2013-10-12 20:18:03+00:00)
Title: Skeletal test harness

To run, `./test.py`

The test harness sets an environment variable before importing config.py, which
tells config to use a "test environment" (store dir, key dir, and journalist
key) instead of the production environment.

I created a journalist keypair and included it in the repo for testing.
Generating a GPG keypair can be very time-consuming, and we want to be able to
run tests as fast as possible. The keypair is clearly marked so it is not used
by anyone for anything besides testing this application.