The serous covering of the testes. It consists of two layers, a visceral layer that covers the surface of the testis, and a parietal layer that lies on the internal surface of the scrotum.