def test_del_state(self): "Atom: delete state" Fe57 = Atom('Fe', mass=57) Fe57.velocity = (0, 0, 1) del Fe57.velocity self._assertRaises(AttributeError, 'Fe57.velocity', locals()) return
def test_del_state(self): "Atom: delete state" Fe57 = Atom( 'Fe', mass=57 ) Fe57.velocity = (0,0,1) del Fe57.velocity self._assertRaises( AttributeError, 'Fe57.velocity', locals()) return
def test_setable_state(self): "Atom: setable state" Fe57 = Atom('Fe', mass=57) v = (0, 0, 1) print '- Set velocity to %s ... ' % (v, ), Fe57.velocity = v print ' velocity = %s ' % (Fe57.velocity, ) print "- velocity's documentation: %s " % Atom.velocity.doc return
def test_setable_state(self): "Atom: setable state" Fe57 = Atom( 'Fe', mass=57 ) v = (0,0,1) print '- Set velocity to %s ... ' % (v,), Fe57.velocity = v print ' velocity = %s ' % (Fe57.velocity,) print "- velocity's documentation: %s " % Atom.velocity.doc return
def test_str(self): "Atom: __str__" Fe57 = Atom('Fe', mass=57) Fe57.velocity = (0, 0, 1) print Fe57 return
def test_str(self): "Atom: __str__" Fe57 = Atom( 'Fe', mass=57 ) Fe57.velocity = (0,0,1) print Fe57 return