def test_expand(self):
        result = hostlists.expand(['foo[01-10]', '-', 'foo[04-06]'])
        expected_result = [
            'foo09', 'foo08', 'foo07', 'foo02', 'foo01', 'foo03', 'foo10']
        result.sort()
        expected_result.sort()
        self.assertLessEqual(result, expected_result)
Expand a list of lists and set operators into a final host lists
dataset/ETHPy150Open dwighthubbard/hostlists/tests/test_hostlists.py/TestHostlists.test_expand