comparison tests/test_split.py @ 50:1284c99a94fa

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Sat, 16 May 2015 21:02:07 -0700
parents 643c8e92e71e
children c3b69728f291
comparison
equal deleted inserted replaced
49:643c8e92e71e 50:1284c99a94fa
17 17
18 # 012345678901 18 # 012345678901
19 string = 'a cat, a bat' 19 string = 'a cat, a bat'
20 20
21 retval = split.findall(string, 'a') 21 retval = split.findall(string, 'a')
22 22 self.assertEqual(retval, [0,3,7,10])
23
24 self.assertEqual(split.findall(string, 't'),
25 [4, 11])
26
27
23 if __name__ == '__main__': 28 if __name__ == '__main__':
24 unittest.main() 29 unittest.main()
25 30