示例#1
0
    def test_print_structure(self):
        table = Table(self.rows, self.column_names, self.column_types)

        output = six.StringIO()
        table.print_structure(output=output)
        lines = output.getvalue().strip().split('\n')

        self.assertEqual(len(lines), 5)
示例#2
0
    def test_print_structure(self):
        table = Table(self.rows, self.column_names, self.column_types)

        output = six.StringIO()
        table.print_structure(output=output)
        lines = output.getvalue().strip().split('\n')

        self.assertEqual(len(lines), 5)