def test_binary_descriptors_unequal_descriptor_sizes_error():
 descs1 = np.array([[True, True, False, True], [False, True, False, True]])
 descs2 = np.array([[True, False, False, True, False], [False, True, True, True, False]])
 assert_raises(ValueError, match_descriptors, descs1, descs2)

def test_binary_descriptors_unequal_descriptor_sizes_error ( ) : descs1 = np . array ( [ [ True , True , False , True ] , [ False , True , False , True ] ] ) descs2 = np . array ( [ [ True , False , False , True , False ] , [ False , True , True , True , False ] ] ) assert_raises ( ValueError , match_descriptors , descs1 , descs2 )
sizes of descriptors of keypoints to be matched should be equal .