Skip to content
Wayne edited this page Jun 17, 2014 · 1 revision

python-ipernity-api has a serial unittest cases.

Pre-condition for tests

Ipernity account

In order to run various test cases on ipernity.com, you need a Ipernity account.

Once you run unit tests, it would request you login ipernity.com by invoke a browser guiding to ipernity.com authentication page.

After agree the authentication, ipernity would redirect to a local page, however, it does NOT support port number redirection. So you need manual add port number to url (port num is 5678, url: http://localhost:5678), and then go to that page, it would tell you to close the page. Done!

requirement of test account

For full tests, the account needs to have:

  • network
  • group

Otherwise, TestCaseError would raise when running some cases.

Simple way to run all tests

nosetest2 tests

if you don't have nose installed, just use the below command:

python2 -m unittest tests

Clone this wiki locally