Ejemplo n.º 1
0
 def test_split_empty(self):
     self.assertEqual(split_words(''), [])
Ejemplo n.º 2
0
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
Ejemplo n.º 3
0
 def test_split_simple(self):
     self.assertEqual(split_words('hello, there!'), ['hello,', 'there!'])
Ejemplo n.º 4
0
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
Ejemplo n.º 5
0
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
Ejemplo n.º 6
0
 def test_split_two_spaces(self):
     self.assertEqual(split_words(' one two '), ['one', 'two'])
Ejemplo n.º 7
0
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
Ejemplo n.º 8
0
 def test_split_simple(self):
     self.assertEqual(split_words('hello, there!'), ['hello,', 'there!'])
Ejemplo n.º 9
0
 def test_split_one(self):
     self.assertEqual(split_words('one'), ['one'])
Ejemplo n.º 10
0
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
Ejemplo n.º 11
0
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
Ejemplo n.º 12
0
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
Ejemplo n.º 13
0
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
Ejemplo n.º 14
0
 def test_split_two_spaces(self):
     self.assertEqual(split_words(' one two '), ['one', 'two'])
Ejemplo n.º 15
0
 def test_split_one(self):
     self.assertEqual(split_words('one'), ['one'])
Ejemplo n.º 16
0
 def test_split_empty(self):
     self.assertEqual(split_words(''), [])