Can';运行python unittest时找不到测试模块

Can';运行python unittest时找不到测试模块,python,python-unittest,Python,Python Unittest,我使用unittest来测试我的python项目,但我发现新的测试文件不起作用,旧的测试仍然起作用。 当我运行命令时 ../venv/bin/python2.7 -m unittest tests.testpackagename.test_file_name.testclassname.testfunname python告诉我的 AttributeError: 'module' object has no attribute 'test_file_name' Sentry is attemp

我使用unittest来测试我的python项目,但我发现新的测试文件不起作用,旧的测试仍然起作用。 当我运行命令时

../venv/bin/python2.7 -m unittest tests.testpackagename.test_file_name.testclassname.testfunname
python告诉我的

AttributeError: 'module' object has no attribute 'test_file_name'
Sentry is attempting to send 1 pending error messages
我的项目是这样的:

total_project
    ./project
          ./api
          ./logic
          ./tools
    ./tests
          ./api
          ./logic
          ./tools