Mercurial > hg > TextShaper
annotate tests/test_split.py @ 49:643c8e92e71e
wip
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 16 May 2015 20:13:12 -0700 |
parents | 03ce88daa98d |
children | 1284c99a94fa |
rev | line source |
---|---|
48 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 | |
4 """ | |
5 unit tests for `textshaper.split` | |
6 """ | |
7 | |
8 # imports | |
9 import unittest | |
10 from textshaper import split | |
11 | |
12 | |
13 class SplitUnitTest(unittest.TestCase): | |
14 | |
15 def test_findall(self): | |
16 """test basic""" | |
17 | |
49 | 18 # 012345678901 |
19 string = 'a cat, a bat' | |
48 | 20 |
49 | 21 retval = split.findall(string, 'a') |
22 | |
48 | 23 if __name__ == '__main__': |
24 unittest.main() | |
25 |