def test_bad_binary(self): with pytest.raises(AssertionError): check_decoded([("foo-bin", "bar")])
def test_good_binary(self): assert check_decoded([("foo-bin", b"bar")]) is None
def test_bad_value(self): with pytest.raises(AssertionError): check_decoded([("foo", b"bar")])
def test_bad_name(self): with pytest.raises(AssertionError): check_decoded([(b"foo", "bar")])
def test_good(self): assert check_decoded([("foo", "bar")]) is None
def test_empty(self): assert check_decoded([]) is None