Ensure that the data argument will accept tuples of strings and properly encode them.
(data)
| 2672 | ), |
| 2673 | ) |
| 2674 | def test_data_argument_accepts_tuples(data): |
| 2675 | """Ensure that the data argument will accept tuples of strings |
| 2676 | and properly encode them. |
| 2677 | """ |
| 2678 | p = PreparedRequest() |
| 2679 | p.prepare( |
| 2680 | method="GET", url="http://www.example.com", data=data, hooks=default_hooks() |
| 2681 | ) |
| 2682 | assert p.body == urlencode(data) |
| 2683 | |
| 2684 | |
| 2685 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected