def test_common_rules_fixed():
	try:
		import DNS
	except __HOLE__:
		pytest.skip("PyDNS not installed.")

	mock = DomainValidator(fix=True)
	dataset = [
			('.fixme@example.com', ('fixme@example.com', '')),
			('fixme@example.com.', ('fixme@example.com', '')),
		]

	def closure(address, expect):
		assert mock._apply_common_rules(address, 255) == expect

	for address, expect in dataset:
		yield closure, address, expect
dataset/ETHPy150Open marrow/mailer/test/test_validator.py/test_common_rules_fixed