Exemple #1
0
 def test_pad_till_block_size(self):
     self.failUnlessEqual(len(add_pad('qwe')), block_size)
Exemple #2
0
 def test_not_modify_long_input(self):
     text = 'qwe123qwe123qwe123'
     self.failUnlessEqual(remove_pad(add_pad(text)), text)
Exemple #3
0
 def test_not_modify_short_input(self):
     text = 'qwe'
     self.failUnlessEqual(remove_pad(add_pad(text)), text)
Exemple #4
0
 def test_pad_till_block_size(self):
     self.failUnlessEqual(len(add_pad('qwe')), block_size)
Exemple #5
0
 def test_not_modify_long_input(self):
     text = 'qwe123qwe123qwe123'
     self.failUnlessEqual(remove_pad(add_pad(text)), text)
Exemple #6
0
 def test_not_modify_short_input(self):
     text = 'qwe'
     self.failUnlessEqual(remove_pad(add_pad(text)), text)