Пример #1
0
 def test_new_spreadsheet(self):
     """Verify 'xy' can create a new spreadsheet."""
     self.assertIs(None, main(['new.xlsxy', '--no-open']))
Пример #2
0
 def test_new_no_save(self):
     """Verify 'xy' doesn't create a file on error."""
     self.assertIs(None, main(['new.xlsxy', '--no-open']))
Пример #3
0
 def test_new_document(self):
     """Verify 'xy' can create a new document."""
     self.assertIs(None, main(['new.docxy', '--no-open']))
Пример #4
0
 def test_verbose_3(self):
     """Verify verbose level 3 can be set."""
     self.assertIs(None, main(['-vvv']))
Пример #5
0
 def test_convert_custom_output(self):
     """Verify 'xy' can convert a document to a specific output."""
     # TODO: copy input
     self.assertIs(None, main(['--convert', 'sample.docx',
                               '--out', 'sample.xy',
                               '--no-open']))
Пример #6
0
 def test_convert_spreadsheet(self):
     """Verify 'xy' can convert a spreadsheet."""
     # TODO: copy input
     self.assertIs(None, main(['--convert', 'sample.xlsx',
                               '--no-open']))
Пример #7
0
 def test_convert_document(self):
     """Verify 'xy' can convert a document."""
     # TODO: copy input
     self.assertIs(None, main(['--convert', 'sample.docx',
                               '--no-open']))