def DiffOsPathMethodBehavior(self, method_name, path,
                                                             method_returns_path=False):
        return self._CompareBehaviors(method_name, path, os.path, self.fake_os.path,
                                                                    method_returns_path)
Invoke an os.path method in both real and fake contexts and compare.
dataset/ETHPy150Open jmcgeheeiv/pyfakefs/fake_filesystem_vs_real_test.py/FakeFilesystemVsRealTest.DiffOsPathMethodBehavior