I have a directory structure as follows:
TestCases:
__init__.py
agent_cases.py
# contains many classes eg: foo, bar.
TestSuite:
__init__.py
main.py
In main.py,
import TestCases
dir(TestCases.agent_cases)
I expect to find the list of classes including foo, bar, etc. I get an error as follows:
AttributeError: 'module' object has no attribute 'agent_cases'
Also dir(TestCases)
doesn't return the module names under it.
What am I missing? Please help.