Exemple #1
0
    def test_read_write(self):

        c = Controller()

        filename = 'tests/files/test_all.aac'
        self.assertTrue(c.on_read_from_file(filename))

        filename = 'tmp/test_all.aac'
        self.assertTrue(c.on_write_to_file(filename))
Exemple #2
0
    def test_export_ascii(self):

        c = Controller()

        filename = 'tests/files/test_all.aac'
        self.assertTrue(c.on_read_from_file(filename))

        filename = 'tmp/test_all.txt'
        self.assertTrue(c.on_write_to_ascii_file(filename))
Exemple #3
0
    def test_export_pdf(self):

        c = Controller()

        filename = 'tests/files/test_all.aac'
        self.assertTrue(c.on_read_from_file(filename))

        # FIXME
        # To avoid using grid_view methods, use the controller to pass to grid_view.
        # With the disadvantage of not being able to check the outcome here.
        # Instead, visually check the existence and content of the PDF file.
        filename = 'tmp/test_all.pdf'
        c.on_export_as_pdf(filename)
Exemple #4
0
    def test_import_aacircuit(self):

        c = Controller()
        c.legacy = True

        filename = 'tests/files/original_741.aac'
        self.assertTrue(c.on_read_from_file(filename))

        filename = 'tmp/741.aac'
        self.assertTrue(c.on_write_to_file(filename))

        # for (visual) verification only
        filename = 'tmp/741_legacy.pdf'
        c.on_export_as_pdf(filename)

        filename = 'tmp/741_legacy.txt'
        self.assertTrue(c.on_write_to_ascii_file(filename))
Exemple #5
0
    def test_read_aac(self):

        c = Controller()

        filename = 'tests/files/test_tr_circuit.aac'
        self.assertTrue(c.on_read_from_file(filename))