Beispiel #1
0
 def test_N_minus_repetition(self):
     element = ['*4', 'abc']
     expected = 'abc', (0, 4)
     self.assertEqual(choices_parser.get_repetition(element), expected)
Beispiel #2
0
 def test_any_repetition(self):
     element = ['*', 'abc']
     expected = 'abc', (0, float('inf'))
     self.assertEqual(choices_parser.get_repetition(element), expected)
Beispiel #3
0
 def test_no_repetition(self):
     element = 'abc'
     expected = 'abc', None
     self.assertEqual(choices_parser.get_repetition(element), expected)