
However, critics of the bill have condemned it as being as racist and question the establishment of genetics as a basis for citizenship of a nation. Thousands of people staged street protests across France last weekend.
Arnaud Montebourg, deputy of the Socialist party, said: "This law violates the fundamental principles of the republic which do not define family and affiliation by biology."
The new bill was nevertheless passed by 282 votes to 235 in the lower National Assembly of France and by 185 votes to 136 in the upper Senate of the country.
France's Immigration Minister Brice Hortefeux played down the critics and protesters and claimed that 12 other European countries already had similar testing methods.