Exemple #1
0
 def test_resolution_must_be_number(self):
     pdb = Pdb()
     with self.assertRaises(TypeError):
         pdb.resolution = "100"
     pdb.resolution = 3
Exemple #2
0
 def test_can_update_resolution(self):
     pdb = Pdb()
     pdb._resolution = 1.2
     pdb.resolution = 1.5
     self.assertEqual(pdb._resolution, 1.5)