예제 #1
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_three_labels_matches(self):
     msg = BecauseNodeLabelIsOffline % "x86_64&&centos&&centos6"
     assert util.from_offline_node_label(msg) == 'centos'
예제 #2
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_single_label_matches(self):
     msg = BecauseNodeLabelIsOffline % "x86_64"
     assert util.from_offline_node_label(msg) == 'centos'
예제 #3
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_multiple_label_does_not_match(self):
     msg = BecauseNodeLabelIsOffline % "x86_64&&rhel"
     assert util.from_offline_node_label(msg) is None
예제 #4
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_single_label_does_not_match(self):
     msg = BecauseNodeLabelIsOffline % "rhel"
     assert util.from_offline_node_label(msg) is None
예제 #5
0
 def test_single_label_matches(self):
     msg = BecauseNodeLabelIsOffline % "x86_64"
     assert util.from_offline_node_label(msg) == 'centos'
예제 #6
0
 def test_three_labels_matches(self):
     msg = BecauseNodeLabelIsOffline % "x86_64&&centos&&centos6"
     assert util.from_offline_node_label(msg) == 'centos'
예제 #7
0
 def test_single_label_does_not_match(self):
     msg = BecauseNodeLabelIsOffline % "rhel"
     assert util.from_offline_node_label(msg) is None
예제 #8
0
 def test_multiple_label_does_not_match(self):
     msg = BecauseNodeLabelIsOffline % "x86_64&&rhel"
     assert util.from_offline_node_label(msg) is None
예제 #9
0
 def test_multiple_label_matches(self):
     msg = BecauseNodeLabelIsOffline % "x86_64&&centos"
     assert util.from_offline_node_label(msg) == "centos"