Commit 3d1fd0f7 authored by M. Huang's avatar M. Huang
Browse files

1.6.7 new merge. new contributor

parent 63e636cd
Yixin Shi
\ No newline at end of file
Yixin Shi
Fan YANG
__version_info__ = (1, 6, 6)
__version_info__ = (1, 6, 7)
__version__ = '.'.join(map(str, __version_info__))
......@@ -297,29 +297,6 @@ def test_Annotatable():
checkgeneral(v)
def test_Dattr():
v = Quantifiable()
assert v.getUnit() is None
assert v.getTypecode() is None
v.setUnit('AA')
v.setTypecode('BB')
assert v.getUnit() == 'AA'
assert v.getTypecode() == 'BB'
v = Quantifiable(unit='abc', typecode='string')
assert v.getUnit() == 'abc'
assert v.getTypecode() == 'string'
assert v.unit == 'abc'
assert v.typecode == 'string'
assert v.getUnit() == 'abc'
assert v.getTypecode() == 'string'
v = Quantifiable()
v.unit = 'CC'
v.typecode = 'DD'
assert v.getUnit() == 'CC'
assert v.getTypecode() == 'DD'
def test_Composite():
# set/get
......@@ -894,6 +871,29 @@ def test_Quantifiable():
assert v.getTypecode() == b
def test_Dattr():
v = Quantifiable()
assert v.getUnit() is None
assert v.getTypecode() is None
v.setUnit('AA')
v.setTypecode('BB')
assert v.getUnit() == 'AA'
assert v.getTypecode() == 'BB'
v = Quantifiable(unit='abc', typecode='string')
assert v.getUnit() == 'abc'
assert v.getTypecode() == 'string'
assert v.unit == 'abc'
assert v.typecode == 'string'
assert v.getUnit() == 'abc'
assert v.getTypecode() == 'string'
v = Quantifiable()
v.unit = 'CC'
v.typecode = 'DD'
assert v.getUnit() == 'CC'
assert v.getTypecode() == 'DD'
def test_NumericParameter():
v = NumericParameter()
assert v.description == 'UNKNOWN'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment