def test_get_dummy_device(self): if not cuda.available: self.assertIs(cuda.get_device(), cuda.DummyDevice)