/
Add New Tests

Add New Tests

Check the online tutorial: http://openflow.org/wk/index.php/OFTestTutorial

You can:

  • Add cases to an existing file
  • Add a new file

If you add cases to an existing file, each case should be its own class. It must inherit from unittest.TestCase or one of its derivatives and define runTest (that's how test cases are discovered).

If you add a new file, it must implement a top level function called test_set_init which takes a configuration dictionary. See basic.py for object to the test cases. But you can access any configuration parameters this way. Each test case in the new file must derive from unittest.TestCase.

CONVENTIONS:

The first line of the doc string for a file and for a test class is displayed in the list command. Please keep it clear and under 50 characters.