Searched refs:assert_equal (Results 1 – 4 of 4) sorted by relevance
/build/soong/python/tests/ |
D | py-cmd_test.py | 23 def assert_equal(what, a, b): function 29 assert_equal("__name__", __name__, "__main__") 30 assert_equal("os.path.basename(__file__)", os.path.basename(__file__), "py-cmd_test.py") 33 assert_equal("len(sys.argv)", len(sys.argv), 3) 34 assert_equal("sys.argv[1]", sys.argv[1], "arg1") 35 assert_equal("sys.argv[2]", sys.argv[2], "arg2") 37 assert_equal("len(sys.argv)", len(sys.argv), 3) 38 assert_equal("sys.argv[1]", sys.argv[1], "--arg1") 39 assert_equal("sys.argv[2]", sys.argv[2], "arg2") 41 assert_equal("len(sys.argv)", len(sys.argv), 1) [all …]
|
D | par_test.py | 23 def assert_equal(what, a, b): function 29 assert_equal("__name__", __name__, "__main__") 33 assert_equal("os.path.basename(__file__)", fileName, "par_test.py") 39 assert_equal("__package__", __package__, "") 40 assert_equal("sys.argv[0]", sys.argv[0], archive) 41 assert_equal("sys.executable", sys.executable, None) 42 assert_equal("sys.exec_prefix", sys.exec_prefix, archive) 43 assert_equal("sys.prefix", sys.prefix, archive) 44 assert_equal("__loader__.archive", __loader__.archive, archive) 45 assert_equal("site.ENABLE_USER_SITE", site.ENABLE_USER_SITE, None) [all …]
|
/build/soong/python/tests/testpkg/ |
D | par_test.py | 22 def assert_equal(what, a, b): function 30 assert_equal("__name__", __name__, "testpkg.par_test") 34 assert_equal("__file__", fileName, os.path.join(archive, "testpkg/par_test.py")) 36 assert_equal("__package__", __package__, "testpkg") 38 assert_equal("__loader__.archive", __loader__.archive, archive) 39 assert_equal("__loader__.prefix", __loader__.prefix, "testpkg/")
|
D | pycmd_test.py | 22 def assert_equal(what, a, b): function 28 assert_equal("__name__", __name__, "testpkg.pycmd_test") 29 assert_equal("basename(__file__)", os.path.basename(__file__), "pycmd_test.py") 30 assert_equal("__package__", __package__, "testpkg")
|