def test_strip_tlp(): assert tokenize('625-5/11-501(a)(2) (tp337049) (att)') == [ '625', '5', '/11', '501', 'a', '2', 'att' ]
def test_periods(): assert tokenize('foo.bar') == ['foo.bar']
def test_hyphens(): assert tokenize('foo-bar-baz') == ['foo', 'bar', 'baz']
def test_strip_ilcs(): assert tokenize('720 ilcs 5/21') == ['720', '5', '/21']
def test_commas(): assert tokenize('foo,bar') == ['foo', 'bar']
def test_parens(): assert tokenize('foobar(a)') == ['foobar', 'a'] assert tokenize('foobar(a)(b)') == ['foobar', 'a', 'b']
def test_back_slashes(): assert tokenize('foo\\bar') == ['foo', '/bar']
def test_forward_slashes(): assert tokenize('foo/bar') == ['foo', '/bar']
def test_spaces(): assert tokenize('foo bar') == ['foo', 'bar'] assert tokenize('foo bar') == ['foo', 'bar'] assert tokenize('foo bar ') == ['foo', 'bar'] assert tokenize(' foo bar') == ['foo', 'bar']