for row in self.db_conn.row_where('versioned_tests', 'parent', 1):
loaded_attr.history_from_row(row)
for timestamp, value in self.attr.history.items():
self.assertEqual(value, loaded_attr.history[timestamp])
self.assertEqual(len(self.attr.history.keys()),
len(loaded_attr.history.keys()))
for row in self.db_conn.row_where('versioned_tests', 'parent', 1):
loaded_attr.history_from_row(row)
for timestamp, value in self.attr.history.items():
self.assertEqual(value, loaded_attr.history[timestamp])
self.assertEqual(len(self.attr.history.keys()),
len(loaded_attr.history.keys()))