Beispiel #1
0
    def testRead(self):
        position = tryGetPos(self.globalState.safeFile)
        length = tryGetSize(self.globalState.safeFile)

        safeResult = tryRead(self.globalState.safeFile, length - position)
        testResult = tryRead(self.globalState.testFile, length - position)

        self.raiseExceptionIfDied()
        assert safeResult == testResult
Beispiel #2
0
    def testGetPos(self):
        safePos = tryGetPos(self.globalState.safeFile)
        testPos = tryGetPos(self.globalState.testFile)

        self.raiseExceptionIfDied()
        assert safePos == testPos