Пример #1
0
 def test_iter_none_infix_only(self):
     self.assertEqual(str_join(self.iter_none, ' '), '')
Пример #2
0
 def test_iter_none_all_fixes(self):
     self.assertEqual(str_join(self.iter_none, ' ', 'at', 'ed'), '')
Пример #3
0
 def test_iter_full_infix_postfix(self):
     self.assertEqual(str_join(self.iter_full, ' ', postfix='ed'),
                      't e s ted')
Пример #4
0
 def test_iter_full_all_fixes(self):
     self.assertEqual(str_join(self.iter_full, ' ', 'at', 'ed'),
                      'att e s ted')
Пример #5
0
 def test_iter_full_infix_postfix_none(self):
     self.assertEqual(str_join(self.iter_full, ' ', postfix=None),
                      't e s t')
Пример #6
0
 def test_iter_full_infix_prefix(self):
     self.assertEqual(str_join(self.iter_full, ' ', 'at'), 'att e s t')
Пример #7
0
 def test_iter_full_infix_only(self):
     self.assertEqual(str_join(self.iter_full, ' '), 't e s t')
Пример #8
0
 def test_iter_empty_all_fixes(self):
     self.assertEqual(str_join(self.iter_empty, ' ', 'at', 'ed'), '')
Пример #9
0
 def test_iter_empty_infix_only(self):
     self.assertEqual(str_join(self.iter_empty, ' '), '')