How to do it...

Let's perform the steps that follow:

  1. Import the relevant nose.tools:
from nose.tools import eq_ 
  1. Then, set the TestSuite class. Here, the methods of the class are tested by the eq_ function:
class TestSuite:
def test_mult(self):
eq_(2*2,4)

def ignored(self):
eq_(2*2,3)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset