Пример #1
0
 def test_nostrip(self):
     """
     Typical successful use, no stripping
     """
     from velouria.config import parse_multi
     
     expected = ['one ', '    two', ' three\t ', ' four ', ' five']
     subject = "one \n    two\n\n three\t \n four , five"
     
     self.assertEqual(expected, parse_multi(subject, strip=False))
Пример #2
0
 def test_oneline(self):
     """
     Only one line provided, comma separated
     """
     from velouria.config import parse_multi
     
     expected = ['one', 'two', 'three', 'four', 'five']
     subject = "one, two,three,four , five"
     
     self.assertEqual(expected, parse_multi(subject))