Example #1
0
 def test_one_char_inc(self):
     self.failUnlessEqual(increment_str('1'), '2')
Example #2
0
 def test_multi_char_inc(self):
     self.failUnlessEqual(increment_str('01ff'.decode('hex')), '0200'.decode('hex'))
Example #3
0
 def test_two_char_inc(self):
     self.failUnlessEqual(increment_str('aa'), 'ab')
Example #4
0
 def test_one_char_inc(self):
     self.failUnlessEqual(increment_str('1'), '2')
Example #5
0
 def test_multi_char_inc(self):
     self.failUnlessEqual(increment_str('01ff'.decode('hex')),
                          '0200'.decode('hex'))
Example #6
0
 def test_two_char_inc(self):
     self.failUnlessEqual(increment_str('aa'), 'ab')