예제 #1
0
 def test_Configs_bool(self):
     Config.set('test', True)
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), bool)
     Config.set('test2', False)
     print(Config.get('test2'))
     self.assertIsInstance(Config.get('test2'), bool)
예제 #2
0
 def test_Configs_int(self):
     Config.set('test', 1)
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), int)
예제 #3
0
 def test_Configs_dict(self):
     Config.set('test', {'1': 1, '2': 2})
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), (dict, ))
예제 #4
0
 def test_Configs_list(self):
     Config.set('test', ['1', '2'])
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), (list, ))
예제 #5
0
 def test_Configs_tuple(self):
     Config.set('test', ('1', '2'))
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), (list, ))
예제 #6
0
 def test_Configs_str(self):
     Config.set('test', '1')
     print(Config.get('test'))
     self.assertIsInstance(Config.get('test'), str)