"""Test territory model.""" from territories.models import territory def test_with_blank_continent(): """Test that an empty string for continent is converted to None.""" glorious_nation_of_jersey = territory.Territory( territory_id=356, orch_id=242, standard='ISO_3166_1_2016', territory_name='Jersey', territory_code_a2='JE', territory_code_a3='JEY', territory_code_numeric=832, continent='') assert glorious_nation_of_jersey.continent is None