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