Ejemplo n.º 1
0
 def test_works_with_label_expression(self):
     msg = BecauseLabelIsOffline % 'x86_64&&huge'
     assert util.from_offline_label(msg) == 'centos6'
Ejemplo n.º 2
0
 def test_name_exists_but_not_the_label(self):
     msg = BecauseLabelIsOffline % 'centos6'
     assert util.from_offline_label(msg) is None
Ejemplo n.º 3
0
 def test_matches_a_label(self):
     msg = BecauseLabelIsOffline % 'x86_64'
     assert util.from_offline_label(msg) == 'centos6'
Ejemplo n.º 4
0
 def test_does_not_match_a_label(self):
     assert util.from_offline_label(self.msg) is None
Ejemplo n.º 5
0
 def test_matches_a_label(self):
     msg = BecauseLabelIsOffline % 'x86_64'
     assert util.from_offline_label(msg) == 'centos6'
Ejemplo n.º 6
0
 def test_name_exists_but_not_the_label(self):
     msg = BecauseLabelIsOffline % 'centos6'
     assert util.from_offline_label(msg) is None
Ejemplo n.º 7
0
 def test_does_not_match_a_label(self):
     assert util.from_offline_label(self.msg) is None
Ejemplo n.º 8
0
 def test_works_with_label_expression(self):
     msg = BecauseLabelIsOffline % 'x86_64&&huge'
     assert util.from_offline_label(msg) == 'centos6'