Beispiel #1
0
 def test_ne(self):
     self.assertNotEqual(cuda.DummyDeviceType(), 1)
Beispiel #2
0
 def test_eq(self):
     self.assertEqual(cuda.DummyDeviceType(), cuda.DummyDeviceType())
Beispiel #3
0
 def test_int(self):
     self.assertEqual(int(cuda.DummyDeviceType()), -1)
Beispiel #4
0
 def test_ne(self):
     assert cuda.DummyDeviceType() != 1
Beispiel #5
0
 def test_eq(self):
     assert cuda.DummyDeviceType() == cuda.DummyDeviceType()
Beispiel #6
0
 def test_int(self):
     assert int(cuda.DummyDeviceType()) == -1