'Diffing objects that are equal results in an object that is smaller
than the object.'

def test_equal_objects(self):

    baseobj = frozenset(xrange(1000))
    object_a = DiffTestObj(a=baseobj)
    object_b = DiffTestObj(a=baseobj)
    diff = create_diff(object_a, object_b)
    serialized_diff = wire_encode(diff)
    self.assertThat(len(serialized_diff), LessThan(len(dumps(list(baseobj)))))
    self.assertThat(wire_decode(serialized_diff).apply(object_a), Equals(object_b))
