Example #1
0
 def test_with_pixel_below_52(self):
     self.assertEqual(' ', match_brightness_to_character(51))
Example #2
0
 def test_with_pixel_0(self):
     self.assertEqual(' ', match_brightness_to_character(0))
Example #3
0
 def test_with_pixel_above_204(self):
     self.assertEqual('█', match_brightness_to_character(255))
Example #4
0
 def test_with_pixel_between_153_and_203(self):
     self.assertEqual('▓', match_brightness_to_character(202))
Example #5
0
 def test_with_pixel_between_102_and_152(self):
     self.assertEqual('▒', match_brightness_to_character(151))
Example #6
0
 def test_with_pixel_between_52_and_101(self):
     self.assertEqual('░', match_brightness_to_character(52))