Пример #1
0
    def test_spaces(self):

        assert tokenize('foo bar') == ['foo', 'bar']
        assert tokenize('foo  bar') == ['foo', 'bar']
        assert tokenize('foo bar ') == ['foo', 'bar']
        assert tokenize(' foo bar') == ['foo', 'bar']
Пример #2
0
    def test_spaces(self) :

        assert tokenize('foo bar') == ['foo', 'bar']
        assert tokenize('foo  bar') == ['foo', 'bar']
        assert tokenize('foo bar ') == ['foo', 'bar']
        assert tokenize(' foo bar') == ['foo', 'bar']
Пример #3
0
    def test_split_on_punc(self):

        assert tokenize('foo,bar') == ['foo,', 'bar']
Пример #4
0
    def test_split_on_punc(self) :

        assert tokenize('foo,bar') == ['foo,', 'bar']