def test_pad_till_block_size(self): self.failUnlessEqual(len(add_pad('qwe')), block_size)
def test_not_modify_long_input(self): text = 'qwe123qwe123qwe123' self.failUnlessEqual(remove_pad(add_pad(text)), text)
def test_not_modify_short_input(self): text = 'qwe' self.failUnlessEqual(remove_pad(add_pad(text)), text)