Example #1
0
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
Example #2
0
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
Example #3
0
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
Example #4
0
 def test_pair_split_empty(self):
     self.assertEqual(pair_split([]), [])
Example #5
0
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
Example #6
0
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
Example #7
0
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
Example #8
0
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
Example #9
0
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
Example #10
0
 def test_pair_split_empty(self):
     self.assertEqual(pair_split([]), [])