]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/behave_tests/features/validation_util.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / behave_tests / features / validation_util.py
1
2 def str_to_list(string):
3 """
4 Converts the string into list removing whitespaces
5 """
6 string = string.replace('\t', '\n')
7 return [
8 [
9 key for key in line.split(' ')
10 if key != ''
11 ]
12 for line in string.split('\n')
13 if line != ''
14 ]
15
16
17 def assert_str_in_list(keyword_list, output_list):
18 for keyword in keyword_list:
19 assert keyword in output_list, f" Not found {keyword}"