예제 #1
0
 def test_load_settings_2(self):
     d = Definition({'name': 'test'})
     d.load_settings({'name': 'This is a test name'})
     self.assertEqual(d.settings, {'name': 'test'})
예제 #2
0
 def test_load_settings_3(self):
     d = Definition({'name': 'test'})
     d.load_settings({'name': 'This is a test name'}, override=True)
     self.assertEqual(d.settings, {'name': 'This is a test name'})