Ejemplo n.º 1
0
 def test_parse_none(self):
   assert parse_instances(None) is None
   assert parse_instances("") is None
Ejemplo n.º 2
0
 def test_parse_instances(self):
   instances = '0,1-3,5'
   x = parse_instances(instances)
   assert x == [0, 1, 2, 3, 5]