def test_datacube_root_from_inspect(self):
        """Test finding the datacube root using the inspect module."""

        if os.environ in 'DATACUBE_ROOT':
            del os.environ['DATACUBE_ROOT']

        datacube_root = cube_util.get_datacube_root()

        # Verify that the directory returned at least contains datacube
        # code. Probably about the best we can do without calling inspect
        # ourselves.
        module_path = os.path.join(datacube_root, 'test_cube_util.py')
        if not os.path.isfile(module_path):
            self.fail("Cannot find module file at datacube_root:\n" +
                      "   " + module_path + "\n")
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/test_cube_util.py/TestGetDatacubeRoot.test_datacube_root_from_inspect/swapped operands of `in`