def METHOD_NAME(self):
    rec = cr.RepomdRecord("primary", None)
    self.assertTrue(rec)
    stat = cr.ContentStat(cr.SHA256)
    stat.checksum = "foobar"
    stat.checksum_type = cr.SHA256
    stat.size = 123
    self.assertEqual(rec.checksum_open, None)
    self.assertEqual(rec.checksum_open_type, None)
    self.assertEqual(rec.size, 0)
    rec.load_contentstat(stat);
    self.assertEqual(rec.checksum_open, "foobar")
    self.assertEqual(rec.checksum_open_type, "sha256")
    self.assertEqual(rec.size_open, 123)