Пример #1
0
 def test_index_pairs(self):
     """Check particle index pairs"""
     ps = []
     for i in range(10):
         pp = (IMP.ParticleIndex(i), IMP.ParticleIndex(i + 1))
     pso = IMP._pass_particle_index_pairs(ps)
     self._equal_lists(ps, pso)
Пример #2
0
 def test_no_model(self):
     """Check that printing particle indexes in python works"""
     pi = IMP.ParticleIndex(1)
     strpi = str(pi)
     print(strpi)
     self.assertEqual(strpi, "1")
Пример #3
0
 def test_indexes(self):
     """Check that ParticleIndexesAdaptor works"""
     pis = [IMP.ParticleIndex(i) for i in range(0, 10)]
     opis = IMP._take_particle_indexes_adaptor(pis)
     self.assertEqual(pis, opis)