def test_merge_entities(): x = Entity('x',[1,2,3],weight=1,color='r') y = Entity('y',[2,3,4],weight=3) z = Entity.merge_entities('z',x,y) assert z.uidset == set([1,2,3,4]) assert z.weight == 3 assert z.color == 'r'
def test_merge_entities(): x = Entity("x", [1, 2, 3], weight=1, color="r") y = Entity("y", [2, 3, 4], weight=3) z = Entity.merge_entities("z", x, y) assert z.uidset == set([1, 2, 3, 4]) assert z.weight == 3 assert z.color == "r"