def test_set_override_false(self): d = Definition({'name': 'test'}) d.set('name', 'This is a test name', override=False) self.assertEqual(d.get('name'), 'test')
def test_set(self): d = Definition({'name': 'This is a test name'}) d.set('name', 'test') self.assertEqual(d.get('name'), 'test')
def test_get_default_1(self): d = Definition({}) self.assertEqual(d.get('name'), None)
def test_set_default_3(self): d = Definition({}) d.set_default('name', 'test') self.assertEqual(d.get('name'), 'test')
def test_get(self): d = Definition({'name': 'test'}) self.assertEqual(d.get('name'), 'test')