1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 from mozunit
import main
9 from mozbuild
.pythonutil
import iter_modules_in_path
12 def test_iter_modules_in_path():
13 tests_path
= os
.path
.normcase(os
.path
.dirname(__file__
))
14 paths
= list(iter_modules_in_path(tests_path
))
15 assert set(paths
) == set(
17 os
.path
.join(os
.path
.abspath(tests_path
), "__init__.py"),
18 os
.path
.join(os
.path
.abspath(tests_path
), "test_pythonutil.py"),
23 if __name__
== "__main__":