16 | | |
17 | | # def test_iterator_choices_and_field_display(self): |
18 | | # """ |
19 | | # Check that get_choices works with Iterators (#23112). |
20 | | # """ |
21 | | # self.assertEqual(WhizIter(c=1).get_c_display(), 'val-1') # A nested value |
22 | | # self.assertEqual(WhizIter(c=9).get_c_display(), 9) # Invalid value |
23 | | # self.assertEqual(WhizIter(c=None).get_c_display(), None) # Blank value |
24 | | # self.assertEqual(WhizIter(c='').get_c_display(), '') # Empty value |
| 16 | {{{ |
| 17 | def test_iterator_choices_and_field_display(self): |
| 18 | """ |
| 19 | Check that get_choices works with Iterators (#23112). |
| 20 | """ |
| 21 | self.assertEqual(WhizIter(c=1).get_c_display(), 'val-1') # A nested value |
| 22 | self.assertEqual(WhizIter(c=9).get_c_display(), 9) # Invalid value |
| 23 | self.assertEqual(WhizIter(c=None).get_c_display(), None) # Blank value |
| 24 | self.assertEqual(WhizIter(c='').get_c_display(), '') # Empty value |
| 25 | }}} |