Beispiel #1
0
 def test_rfactor_must_be_number(self):
     pdb = Pdb()
     with self.assertRaises(TypeError):
         pdb.rfactor = "100"
     pdb.rfactor = 3
Beispiel #2
0
 def test_can_update_rfactor(self):
     pdb = Pdb()
     pdb._rfactor = 1.2
     pdb.rfactor = 1.5
     self.assertEqual(pdb._rfactor, 1.5)