def test_prespawn_max_conflict(self):
     """Server should error if prespawn count is greater than max allowed
     kernels.
     """
     app = KernelGatewayApp()
     app.prespawn_count = 3
     app.max_kernels = 2
     self.assertRaises(RuntimeError, app.init_configurables)
 def test_prespawn_max_conflict(self):
     """Server should error if prespawn count is greater than max allowed
     kernels.
     """
     app = KernelGatewayApp()
     app.prespawn_count = 3
     app.max_kernels = 2
     self.assertRaises(RuntimeError, app.init_configurables)
 def test_seed_kernel_failing(self):
     """
     Server should error because seed notebook requires a kernel that is not
     installed.
     """
     app = KernelGatewayApp()
     app.prespawn_count = 1
     app.seed_uri = os.path.join(RESOURCES, 'failing_code.ipynb')
     self.assertRaises(RuntimeError, app.init_configurables)