'nosetests is not discovering any tests

I am following the Apress book 'Python Unit Test Automation'

I am trying to use the discovery feature of nosetests. When I run it in the project directory it should discover all the tests there.

When I run nosetests from chp4 directory 0 tests are run
I run nosetests from test directory 0 tests are run
nosetest will only run tests if I specify 'nosetests test.test_module02'

directory structure below.

chp4
__mypackage
----mymathlib.py
--test
----test_module01.py
----test_module02.py

test_module02.py

from mypackage.mymathlib import *
class TestClass01:
    def test_case01(self):
        print("In test_case01()")
        assert mymathlib().add(2,5) ==7


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source