Skip to content

Commit

Permalink
Merge 2d7151a into 55f9df6
Browse files Browse the repository at this point in the history
  • Loading branch information
mbourqui committed May 17, 2020
2 parents 55f9df6 + 2d7151a commit 8282b8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions echoices/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,15 @@ class Meta:
instance = TestEChoiceFieldEStrChoicesModel.objects.get(pk=1)
f = TestEChoiceFieldEStrChoicesModelForm(instance=instance)
self.assertInHTML('<option value="value1" selected="selected">Label 1</option>', str(f))


class SerializationTestCase(TestCase):
def test_pickle(self):
import pickle
from ..enums import EChoice
pickle.loads(pickle.dumps(EChoice))
pickle.loads(pickle.dumps(ETestCharChoices))
from ..enums import EOrderedChoice
pickle.loads(pickle.dumps(EOrderedChoice))
from ..enums import EAutoChoice
pickle.loads(pickle.dumps(EAutoChoice))

0 comments on commit 8282b8b

Please sign in to comment.