import IMP import IMP.test import IMP.core class Test(IMP.test.TestCase): """Tests for children refiner""" def test_set_position(self): """Make sure the Table PR works""" IMP.set_log_level(IMP.VERBOSE) print "hello" m= IMP.Model() p= IMP.Particle(m) tpr= IMP.core.TableRefiner() ps= IMP.Particles() ps.append(p) tpr.add_particle(p, ps) self.assertTrue(tpr.get_can_refine(p)) self.assertEqual(tpr.get_refined(p)[0], p) tpr.remove_particle(p) self.assertFalse(tpr.get_can_refine(p)) if __name__ == '__main__': IMP.test.main()