Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

it also differs what is the return value or what is that we want to test. In this case we need to check if it has all the properties when we initiate an instance of a complex class so that we can populate it with further relevant data. In the code blow you might see setup method which is used to set the values before starting any testcase. The setUp() and tearDown() methods allow you to define instructions that will be executed before and after each test method. The  unittest.main() provides a command-line interface to the test script.

Image RemovedImage Added



5) After running it you will see the results as below:

...