def test_rebuild_merge(self): col = 'not-in-dframe' schema = Schema({col: {}}) new_schema = schema.rebuild(self.dframe) self.assertEqual(new_schema[col], {})
def test_rebuild_no_merge(self): col = 'not-in-dframe' schema = Schema({col: {}}) new_schema = schema.rebuild(self.dframe, overwrite=True) self.assertFalse(col in new_schema)
def test_rebuild(self): schema = Schema() new_schema = schema.rebuild(self.dframe) self.assertNotEqual(schema, new_schema)