def top_test(self):
     '''
     Test that the value of the 2nd pixel from the top is 7.
     '''
     top_test_result = get_value_by_pixel_count(self.input_array, 7, 'top')
     error = 'top_test gave ' + str(top_test_result) + ' expected 7.'
     assert top_test_result == 7, error
 def bottom_test(self):
     '''
     Test that the value of the 2nd pixel from the bottom is 1.
     '''
     bottom_test_result = get_value_by_pixel_count(self.input_array, 2, 'bottom')
     error = 'bottom_test gave ' + str(bottom_test_result) + ' expected 2.'
     assert bottom_test_result == 1, error