Пример #1
0
 def test_bad_binary(self):
     with pytest.raises(AssertionError):
         check_decoded([("foo-bin", "bar")])
Пример #2
0
 def test_good_binary(self):
     assert check_decoded([("foo-bin", b"bar")]) is None
Пример #3
0
 def test_bad_value(self):
     with pytest.raises(AssertionError):
         check_decoded([("foo", b"bar")])
Пример #4
0
 def test_bad_name(self):
     with pytest.raises(AssertionError):
         check_decoded([(b"foo", "bar")])
Пример #5
0
 def test_good(self):
     assert check_decoded([("foo", "bar")]) is None
Пример #6
0
 def test_empty(self):
     assert check_decoded([]) is None