def test_save_empty_secret(self):
        self.provider.consumer_secret = ''
        self.provider.save()
        self.assertEqual(self.provider.consumer_secret, None)

        self.provider.consumer_secret = None
        self.provider.save()
        self.assertEqual(self.provider.consumer_secret, None)
None/blank secret should normalize to None which is not encrypted.
dataset/ETHPy150Open mlavin/django-all-access/allaccess/tests/test_models.py/ProviderTestCase.test_save_empty_secret