def status(self):
        """Returns status of file. Since POSIX, will always return disk"""

        mtime = os.path.getmtime(self._path)
        ctime = os.path.getctime(self._path)
        bytes_per_level = (long(os.path.getsize(self._path)), )
        filesize = os.path.getsize(self._path)
        status = PosixStatus(mtime, ctime, bytes_per_level, filesize)
        status.set_filepath(self._path)

        return status
    def status(self):
        """Returns status of file. Since POSIX, will always return disk"""

        mtime = os.path.getmtime(self._path)
        ctime = os.path.getctime(self._path)
        bytes_per_level = (long(os.path.getsize(self._path)),)
        filesize = os.path.getsize(self._path)
        status = PosixStatus(mtime, ctime, bytes_per_level, filesize)
        status.set_filepath(self._path)

        return status
    def test_posix_status_levels(self):
        """test the correct setting of file storage levels"""

        status = PosixStatus(036, 035, 15, 15)
        value = status.define_levels()
        self.assertEqual(value, ['disk'])
    def test_posix_status_storage_media(self):
        """test the correct finding of posix storage media"""

        status = PosixStatus(036, 035, 15, 15)
        value = status.find_file_storage_media()
        self.assertEqual(value, 'disk')