| 46 | |
| 47 | def test_custom_iterable_not_doseq(self): |
| 48 | class IterableWithStr: |
| 49 | def __str__(self): |
| 50 | return "custom" |
| 51 | |
| 52 | def __iter__(self): |
| 53 | yield from range(0, 3) |
| 54 | |
| 55 | self.assertEqual(urlencode({"a": IterableWithStr()}, doseq=False), "a=custom") |
| 56 |
no outgoing calls