def test_convert_to_bytes(self):
     input = [
         (1,0),
         (1,0),
         (1,0),
         (1,1),
         (1,1),
     ]
     expected = [
         chr(0B01110000),
         chr(0B01110000),
         chr(0B01110000),
         chr(0B01110111),
         chr(0B01110111),
     ]
     self.assertEquals(expected, _convert_to_bytes(input))
 def test_convert_to_bytes_multiple_columns(self):
     input = [
         (1, 0, 0, 1),
         (1, 0, 0, 1),
         (1, 1, 0, 1),
         (1, 1, 0, 1),
         (1, 1, 0, 1),
     ]
     expected = [
         chr(0B01110000) + chr(0B00000111),
         chr(0B01110000) + chr(0B00000111),
         chr(0B01110111) + chr(0B00000111),
         chr(0B01110111) + chr(0B00000111),
         chr(0B01110111) + chr(0B00000111),
     ]
     self.assertEquals(expected, _convert_to_bytes(input))