def testEnd(self): size = len(self.data) s = stream.substream(self.s, size - 4, size) self.assertEquals("tree", self.suckTheMarrow(s))
def testNotStart(self): s = stream.substream(self.s, 12, 26) self.assertEquals("with my friend", self.suckTheMarrow(s))
def testEmptySubstream(self): s = stream.substream(self.s, 11, 11) self.assertEquals("", self.suckTheMarrow(s))
def testStart(self): s = stream.substream(self.s, 0, 11) self.assertEquals("I was angry", self.suckTheMarrow(s))
def testEnd(self): size = len(self.data) s = stream.substream(self.s, size-4, size) self.assertEquals('tree', self.suckTheMarrow(s))
def testEmptySubstream(self): s = stream.substream(self.s, 11, 11) self.assertEquals('', self.suckTheMarrow(s))
def testNotStart(self): s = stream.substream(self.s, 12, 26) self.assertEquals('with my friend', self.suckTheMarrow(s))
def testStart(self): s = stream.substream(self.s, 0, 11) self.assertEquals('I was angry', self.suckTheMarrow(s))