@@ -68,11 +68,13 @@ def test_dumps_unicode_alternative(self):
6868 def test_dump_params_invalid (self ):
6969 with self .assertRaises (TypeError ):
7070 vdf .binary_dump ([], BytesIO ())
71+ with self .assertRaises (TypeError ):
7172 vdf .binary_dump ({}, b'aaaa' )
7273
7374 def test_dumps_params_invalid (self ):
7475 with self .assertRaises (TypeError ):
7576 vdf .binary_dumps ([])
77+ with self .assertRaises (TypeError ):
7678 vdf .binary_dumps (b'aaaa' )
7779
7880 def test_dumps_key_invalid_type (self ):
@@ -94,14 +96,19 @@ def test_alternative_format(self):
9496 def test_load_params_invalid (self ):
9597 with self .assertRaises (TypeError ):
9698 vdf .binary_load (b'aaaa' )
99+ with self .assertRaises (TypeError ):
97100 vdf .binary_load (1234 )
101+ with self .assertRaises (TypeError ):
98102 vdf .binary_load (BytesIO (b'aaaa' ), b'bbbb' )
99103
100104 def test_loads_params_invalid (self ):
101105 with self .assertRaises (TypeError ):
102106 vdf .binary_loads ([])
107+ with self .assertRaises (TypeError ):
103108 vdf .binary_loads (11111 )
109+ with self .assertRaises (TypeError ):
104110 vdf .binary_loads (BytesIO ())
111+ with self .assertRaises (TypeError ):
105112 vdf .binary_load (b'' , b'bbbb' )
106113
107114 def test_loads_unbalanced_nesting (self ):
0 commit comments