if(all(x in test_list for x in sub_list)): flag = True
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b']) True