def test_injector_failure(self):
     self.mock_urlparse.return_value.scheme = 'http'
     with self.assertRaises(TypeError):
         container_ship = ContainerShip(address='http://127.0.0.1:2376', **{})
         container_ship.injector = False
 def test_injector(self):
     self.mock_urlparse.return_value.scheme = 'http'
     container_ship = ContainerShip(address='http://127.0.0.1:2376', **{})
     container_ship.injector = self.injector
     self.assertIsInstance(container_ship.injector, Injector)