def testAccessInvalid(self):
    'Testing access in invalid units'
    d = D(m=100)
    self.assertFalse(hasattr(d, 'banana'))
Testing access in invalid units
def testAccessInvalid(self):
    
    d = D(m=100)
    self.assertFalse(hasattr(d, 'banana'))