def test_read_file(self):
        tn = tempfile.mktemp()
        tndir = os.path.dirname(tn)
        with open(tn, "w") as f:
            f.write(TEST_CONFIG)

        # -- WINDOWS-REQUIRES: normpath
        d = configuration.read_configuration(tn)
        eq_(d["outfiles"], [
            os.path.normpath(ROOTDIR_PREFIX + "/absolute/path1"),
            os.path.normpath(os.path.join(tndir, "relative/path2")),
        ])
        eq_(d["paths"], [
            os.path.normpath(ROOTDIR_PREFIX + "/absolute/path3"),
            os.path.normpath(os.path.join(tndir, "relative/path4")),
            ])
        eq_(d["format"], ["pretty", "tag-counter"])
        eq_(d["tags"], ["@foo,~@bar", "@zap"])
        eq_(d["stdout_capture"], False)
        ok_("bogus" in d)
        eq_(d["userdata"], {"foo": "bar", "answer": "42"})
dataset/ETHPy150Open behave/behave/test/test_configuration.py/TestConfiguration.test_read_file/operator `not in` -> `in`