def testAccess(self):
    'Testing access in different units'
    d = D(m=100)
    self.assertEqual(d.km, 0.1)
    self.assertAlmostEqual(d.ft, 328.084, 3)
Testing access in different units
def testAccess(self):
    
    d = D(m=100)
    self.assertEqual(d.km, 0.1)
    self.assertAlmostEqual(d.ft, 328.084, 3)