Exemplo n.º 1
0
 def test_set_beyond_max(self):
     chemfp.set_num_threads(chemfp.get_max_threads()+1)
     self.assertEquals(chemfp.get_num_threads(), chemfp.get_max_threads())
Exemplo n.º 2
0
 def test_set_to_one(self):
     chemfp.set_num_threads(1)
     self.assertEquals(chemfp.get_num_threads(), 1)
Exemplo n.º 3
0
 def test_set_to_two(self):
     chemfp.set_num_threads(2)
     self.assertEquals(chemfp.get_num_threads(), 2)
Exemplo n.º 4
0
 def test_num_threads_is_max_threads(self):
     self.assertEquals(chemfp.get_num_threads(), chemfp.get_max_threads())
Exemplo n.º 5
0
 def test_set_to_zero(self):
     chemfp.set_num_threads(0)
     self.assertEquals(chemfp.get_num_threads(), 1)
Exemplo n.º 6
0
 def test_set_beyond_max(self):
     chemfp.set_num_threads(chemfp.get_max_threads() + 1)
     self.assertEquals(chemfp.get_num_threads(), chemfp.get_max_threads())
Exemplo n.º 7
0
 def setUp(self):
     self._num_threads = chemfp.get_num_threads()
Exemplo n.º 8
0
 def test_set_to_two(self):
     chemfp.set_num_threads(2)
     self.assertEquals(chemfp.get_num_threads(), 2)
Exemplo n.º 9
0
 def test_set_to_one(self):
     chemfp.set_num_threads(1)
     self.assertEquals(chemfp.get_num_threads(), 1)
Exemplo n.º 10
0
 def test_set_to_zero(self):
     chemfp.set_num_threads(0)
     self.assertEquals(chemfp.get_num_threads(), 1)
Exemplo n.º 11
0
 def test_num_threads_is_max_threads(self):
     self.assertEquals(chemfp.get_num_threads(), chemfp.get_max_threads())
Exemplo n.º 12
0
 def setUp(self):
     self._num_threads = chemfp.get_num_threads()