From 9ef866842d0c55d8d313c472ce38d856f61747ba Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 16 May 2014 13:01:17 -0400 Subject: fix coverage for CFB8 --- tests/hazmat/primitives/test_block.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/hazmat/primitives/test_block.py b/tests/hazmat/primitives/test_block.py index acfd947c..022e3af7 100644 --- a/tests/hazmat/primitives/test_block.py +++ b/tests/hazmat/primitives/test_block.py @@ -184,6 +184,14 @@ class TestModeValidation(object): backend, ) + def test_cfb8(self, backend): + with pytest.raises(ValueError): + Cipher( + algorithms.AES(b"\x00" * 16), + modes.CFB8(b"abc"), + backend, + ) + def test_ctr(self, backend): with pytest.raises(ValueError): Cipher( -- cgit v1.2.3