Exemplo n.º 1
0
 def test_plist(self):
     with fixtures.TempDir() as tmpdir:
         opts = {'output_dir': tmpdir, 'output_format': 'plist'}
         spy = fixtures.Spy()
         sut.set_analyzer_output(opts, spy.call)
         self.assertTrue(os.path.exists(spy.arg['output'][1]))
         self.assertTrue(os.path.isfile(spy.arg['output'][1]))
Exemplo n.º 2
0
 def test_not_defined(self):
     with fixtures.TempDir() as tmpdir:
         opts = {'output_dir': tmpdir}
         spy = fixtures.Spy()
         sut.set_analyzer_output(opts, spy.call)
         self.assertTrue(os.path.exists(spy.arg['output'][1]))
         self.assertTrue(os.path.isdir(spy.arg['output'][1]))