def test_pack_unpack(self): c = Change("r123", "lsc", "This is a fake commit", [ "/hello/world/.", "/hello/world/test.txt", "/hello/kitty/is/too_pink.com", "/donny/darko/.now", "/he/.", ], "project") packed_data = c.packed() c2 = Change.from_packed(packed_data) self.assertEqual(c.data, c2.data)