def test_is_not_hosted(self, mock_get):
     mock_get.return_value = "subscription.example.com"
     self.assertFalse(migrate.is_hosted())
Beispiel #2
0
 def test_is_not_hosted(self, mock_get):
     mock_get.return_value = "subscription.example.com"
     self.assertFalse(migrate.is_hosted())
 def test_is_hosted(self, mock_get):
     mock_get.return_value = "subscription.rhsm.redhat.com"
     self.assertTrue(migrate.is_hosted())
     mock_get.return_value = "subscription.rhn.redhat.com"
     self.assertTrue(migrate.is_hosted())
Beispiel #4
0
 def test_is_hosted(self, mock_get):
     mock_get.return_value = "subscription.rhn.redhat.com"
     self.assertTrue(migrate.is_hosted())