| 1069 | assert mod.value2 == class="st">"got it" |
| 1070 | |
| 1071 | def test_pyimport_and_import(self, tmpdir): |
| 1072 | tmpdir.ensure(class="st">"xxxpackage", class="st">"__init__.py") |
| 1073 | mod1path = tmpdir.ensure(class="st">"xxxpackage", class="st">"module1.py") |
| 1074 | mod1 = mod1path.pyimport() |
| 1075 | assert mod1.__name__ == class="st">"xxxpackage.module1" |
| 1076 | from xxxpackage import module1 |
| 1077 | |
| 1078 | assert module1 is mod1 |
| 1079 | |
| 1080 | def test_pyimport_check_filepath_consistency(self, monkeypatch, tmpdir): |
| 1081 | name = class="st">"pointsback123" |