Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Testing

Justin McWilliams edited this page Oct 17, 2014 · 2 revisions

Overview

Simian source includes unit and integration tests written with pymox.

Run Tests

Run make test from the Simian src root to run all unit tests.

For each test module you should see output something like below:


Testing x509_test
.......................................................
----------------------------------------------------------------------
Ran 55 tests in 0.018s

OK

If any test fails and you haven't modified the code, you're likely missing a dependency. See AdminSetup wiki to make sure you followed the install process.

You may see log output as the tests are running. This is not a problem, it just means that logging code is being called which has not been mocked out, and error conditions are being tested. For example:


Testing gae_util_test
......WARNING:root:blobstore.delete(key) failed: . this key is now probably orphaned.
WARNING:root:blobstore.delete(key) failed: . this key is now probably orphaned.
.WARNING:root:Model.delete(fookeyname) failed: . this entity is now probably empty.
WARNING:root:Model.delete(fookeyname) failed: . this entity is now probably empty.
..

Clone this wiki locally