This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
pymclevel/test/session_lock_test.py

14 lines
414 B
Python

from pymclevel.infiniteworld import SessionLockLost, MCInfdevOldLevel
from templevel import TempLevel
import unittest
class SessionLockTest(unittest.TestCase):
def test_session_lock(self):
temp = TempLevel("AnvilWorld")
level = temp.level
level2 = MCInfdevOldLevel(level.filename)
def touch():
level.saveInPlace()
self.assertRaises(SessionLockLost, touch)