28
28
def test_JSONEncodedDict_default_value(self):
29
29
# Create chassis w/o extra specified.
31
31
self.dbapi.create_chassis({'uuid': ch1_id})
32
32
# Get chassis manually to test SA types in isolation from UOM.
33
33
ch1 = sa_api.model_query(models.Chassis).filter_by(uuid=ch1_id).one()
34
34
self.assertEqual({}, ch1.extra)
36
36
# Create chassis with extra specified.
38
38
extra = {'foo1': 'test', 'foo2': 'other extra'}
39
39
self.dbapi.create_chassis({'uuid': ch2_id, 'extra': extra})
40
40
# Get chassis manually to test SA types in isolation from UOM.