def test_load_cargo_failure(self, mock_healthy):
     with self.assertRaises(TypeError):
         container_ship = ContainerShip(address='http://127.0.0.1:2376', **{})
         container_ship.load_cargo(service=False)
     with self.assertRaises(Exception):
         mock_healthy.return_value = False
         container_ship = ContainerShip(address='http://127.0.0.1:2376', **{})
         container_ship.load_cargo(service=self.mock_service)
 def test_load_cargo(self, mock_healthy, mock_load_service_cargo):
     mock_healthy.return_value = True
     container_ship = ContainerShip(address='http://127.0.0.1:2376', **{})
     container_ship.load_cargo(service=self.mock_service)
     self.assertIsInstance(container_ship, ContainerShip)