mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-05-04 16:54:42 +00:00
Added deepcopy test
This commit is contained in:
parent
5f291a6a4a
commit
18999c43dd
1 changed files with 5 additions and 0 deletions
|
|
@ -230,6 +230,11 @@ class ChoicesTests(TestCase):
|
|||
def test_doesnt_contain_value(self):
|
||||
self.assertFalse('UNPUBLISHED' in self.STATUS)
|
||||
|
||||
def test_deepcopy(self):
|
||||
import copy
|
||||
self.assertEqual(list(self.STATUS),
|
||||
list(copy.deepcopy(self.STATUS)))
|
||||
|
||||
|
||||
class LabelChoicesTests(ChoicesTests):
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue