def test_nodeset_two_basic_ranges(self): result = nodeset.expand('node[1-2]-[3-4]') expected = ['node1-3', 'node1-4', 'node2-3', 'node2-4'] self.assertEqual(result, expected)
def test_nodeset_compound_range_with_spaces(self): result = nodeset.expand('node[0-1, 4, 6]') expected = ['node0', 'node1', 'node4', 'node6'] self.assertEqual(result, expected)
def test_nodeset_basic_range_with_spaces(self): result = nodeset.expand('node[0 - 2]') expected = ['node0', 'node1', 'node2'] self.assertEqual(result, expected)