Esempio n. 1
0
 def test_y_release(self):
     input_data = {'rhsm_release_show': YREL}
     self.assertEqual(
         {
             'msg':
             'Your release is set to 6.4, but should be one of 6Server, 7Server'
         }, sat6_correct_channel.main(input_data))
 def test_correct(self):
     input_data = {"rhsm_release_show": CORRECT}
     self.assertEqual(None, sat6_correct_channel.main(input_data))
 def test_y_release(self):
     input_data = {"rhsm_release_show": YREL}
     self.assertEqual(
         {"msg": "Your release is set to 6.4, but should be one of 6Server, 7Server"},
         sat6_correct_channel.main(input_data),
     )
 def test_empty(self):
     input_data = {"rhsm_release_show": EMPTY}
     self.assertEqual(
         {"msg": "You are not registered using subscription-manager"}, sat6_correct_channel.main(input_data)
     )
Esempio n. 5
0
 def test_correct(self):
     input_data = {'rhsm_release_show': CORRECT}
     self.assertEqual(None, sat6_correct_channel.main(input_data))
Esempio n. 6
0
 def test_empty(self):
     input_data = {'rhsm_release_show': EMPTY}
     self.assertEqual(
         {'msg': 'You are not registered using subscription-manager'},
         sat6_correct_channel.main(input_data))