@@ -98,19 +98,23 @@ def test_streams_sign(self):
98
98
builder .sign (TestBuilder .signer , "image/jpeg" , file , output )
99
99
output .seek (0 )
100
100
reader = Reader ("image/jpeg" , output )
101
- self .assertIn ("Python Test" , reader .json ())
101
+ json_data = reader .json ()
102
+ self .assertIn ("Python Test" , json_data )
103
+ self .assertNotIn ("validation_status" , json_data )
102
104
103
105
def test_archive_sign (self ):
104
106
with open (testPath , "rb" ) as file :
105
107
builder = Builder (TestBuilder .manifestDefinition )
106
- archive = byte_array = io .BytesIO (bytearray ())
108
+ archive = io .BytesIO (bytearray ())
107
109
builder .to_archive (archive )
108
110
builder = Builder .from_archive (archive )
109
- output = byte_array = io .BytesIO (bytearray ())
111
+ output = io .BytesIO (bytearray ())
110
112
builder .sign (TestBuilder .signer , "image/jpeg" , file , output )
111
113
output .seek (0 )
112
114
reader = Reader ("image/jpeg" , output )
113
- self .assertIn ("Python Test" , reader .json ())
115
+ json_data = reader .json ()
116
+ self .assertIn ("Python Test" , json_data )
117
+ self .assertNotIn ("validation_status" , json_data )
114
118
115
119
def test_remote_sign (self ):
116
120
with open (testPath , "rb" ) as file :
@@ -120,7 +124,9 @@ def test_remote_sign(self):
120
124
manifest_data = builder .sign (TestBuilder .signer , "image/jpeg" , file , output )
121
125
output .seek (0 )
122
126
reader = Reader ("image/jpeg" , output , manifest_data )
123
- self .assertIn ("Python Test" , reader .json ())
127
+ json_data = reader .json ()
128
+ self .assertIn ("Python Test" , json_data )
129
+ self .assertNotIn ("validation_status" , json_data )
124
130
125
131
if __name__ == '__main__' :
126
- unittest .main ()
132
+ unittest .main ()
0 commit comments