5 from rtv_abstractpropertiesfile
import AbstractPropertiesFile
7 class PropertiesFile( AbstractPropertiesFile
):
9 def set_value( self
, key
, value
):
10 self
.__dict
__[key
] = value
12 def get_value( self
, key
):
14 if key
in self
.__dict
__:
15 ret
= self
.__dict
__[key
]
19 return self
.__dict
__.keys()
26 pf
.mystrpipe
= "|Hello"
27 pf
.mytuple
= ( "x", "y", "z" )
28 pf
.mylist
= [ "xa", "yb", "zc" ]
32 filename
= "tmp.rtvtestpropertiesfile"
36 pf2
= PropertiesFile()
43 # TODO: assert( pf.__dict__ == pf2.__dict__ )
45 # TODO: test reading a file with spaces around the =, etc.