'Test the conversion of empty strings to None for certain fields.'

def test_get_account_empty_string(self):

    legacy_profile = UserProfile.objects.get(id=self.user.id)
    legacy_profile.country = ''
    legacy_profile.level_of_education = ''
    legacy_profile.gender = ''
    legacy_profile.bio = ''
    legacy_profile.save()
    self.client.login(username=self.user.username, password=TEST_PASSWORD)
    with self.assertNumQueries(17):
        response = self.send_get(self.client)
    for empty_field in ('level_of_education', 'gender', 'country', 'bio'):
        self.assertIsNone(response.data[empty_field])
