예제 #1
0
 def test_delOptions(self):
     Config.delOption('Currency', u'USD')
     self.assertTrue('USD' not in Config.obj['Currency']['types'])
     Config.addOption('Currency', u'USD')
예제 #2
0
 def test_addOptions(self):
     Config.addOption('Tag', u'+1')
     self.assertTrue('+1' in Config.obj['Tag']['types'])