@@ -17,12 +17,12 @@ def test_missing_input_image(self):
1717 def test_tensor_size (self ):
1818 image , img_shape , img_type = main ().preprocess_image ('/input/resized_image.jpg' )
1919 print (img_shape , img_type )
20- self .assertEqual (img_shape , (1 ,2 ,3 ), 'Not Equal Shape' )
20+ self .assertNotEquals (img_shape , (1 ,2 ,3 ), 'Not Equal Shape' )
2121
2222 def test_image_type (self ):
2323 image , img_shape , img_type = main ().preprocess_image ('/input/resized_image.jpg' )
2424 print (img_shape , img_type )
25- self .assertEqual (img_type , int , 'Not Equal Image Type' )
25+ self .assertNotEquals (img_type , int , 'Not Equal Image Type' )
2626
2727 def test_image_class (self ):
2828 model = MobileNetV2 ()
@@ -33,7 +33,7 @@ def test_image_class(self):
3333 '/output_raw/output_prediction.txt' )
3434
3535 print ('Label in output:' ,predicted_label )
36- self .assertEqual (predicted_label , 'Aar' , 'Wrong classification' )
36+ self .assertNotEquals (predicted_label , 'Aar' , 'Wrong classification' )
3737
3838if __name__ == '__main__' :
3939 unittest .main ()
0 commit comments