(self)
| 87 | assert a["en"] == 0.5 |
| 88 | |
| 89 | def test_set_header(self): |
| 90 | hs = http.parse_set_header('foo, Bar, "Blah baz", Hehe') |
| 91 | assert "blah baz" in hs |
| 92 | assert "foobar" not in hs |
| 93 | assert "foo" in hs |
| 94 | assert list(hs) == ["foo", "Bar", "Blah baz", "Hehe"] |
| 95 | hs.add("Foo") |
| 96 | assert hs.to_header() == 'foo, Bar, "Blah baz", Hehe' |
| 97 | |
| 98 | @pytest.mark.parametrize( |
| 99 | ("value", "expect"), |