示例#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']))