Esempio n. 1
0
    def test_grid_Proportional_7(self):
        self.assertEqual(
            grid_to_str(
                grid(s='',
                     default=' ',
                     intra=1,
                     proportional=True,
                     width=None,
                     align='c')), dedent('''\
<>
<>
<>
<>
<>
<>
<>
<>
<>
<>
'''))
Esempio n. 2
0
    def test_grid_NonProportional_3(self):
        self.assertEqual(
            grid_to_str(
                grid(s='abc defghi!A',
                     default=' ',
                     intra=1,
                     proportional=False,
                     width=80,
                     align='c')),
            dedent('''\
<                                                                                >
<          *                     *          *        *       *     *    ***      >
<          *                     *         * *       *             *   *   *     >
<     ***  * **   ***         ** *  ***    *    **** * **   **     *   *   *     >
<        * **  * *           *  ** *   *  ***  *   * **  *   *     *   *****     >
<     **** *   * *           *   * *****   *   *   * *   *   *     *   *   *     >
<    *   * *   * *   *       *   * *       *   *  ** *   *   *         *   *     >
<     ****  ***   ***         ****  ***    *    ** * *   *  ***    *   *   *     >
<                                                  *                             >
<                                               ***                              >
'''))