예제 #1
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_works_with_label_expression(self):
     msg = BecauseLabelIsOffline % 'x86_64&&huge'
     assert util.from_offline_label(msg) == 'centos6'
예제 #2
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_name_exists_but_not_the_label(self):
     msg = BecauseLabelIsOffline % 'centos6'
     assert util.from_offline_label(msg) is None
예제 #3
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_matches_a_label(self):
     msg = BecauseLabelIsOffline % 'x86_64'
     assert util.from_offline_label(msg) == 'centos6'
예제 #4
0
파일: test_util.py 프로젝트: XDsubhash/mita
 def test_does_not_match_a_label(self):
     assert util.from_offline_label(self.msg) is None
예제 #5
0
 def test_matches_a_label(self):
     msg = BecauseLabelIsOffline % 'x86_64'
     assert util.from_offline_label(msg) == 'centos6'
예제 #6
0
 def test_name_exists_but_not_the_label(self):
     msg = BecauseLabelIsOffline % 'centos6'
     assert util.from_offline_label(msg) is None
예제 #7
0
 def test_does_not_match_a_label(self):
     assert util.from_offline_label(self.msg) is None
예제 #8
0
파일: test_util.py 프로젝트: ceph/mita
 def test_works_with_label_expression(self):
     msg = BecauseLabelIsOffline % 'x86_64&&huge'
     assert util.from_offline_label(msg) == 'centos6'