def test_saveDotAndImagesInSameDirectory(self):
        """
        Passing the same directory to --image-directory and --dot-directory
        writes images and dot files to that one directory.
        """
        directory = 'imagesAndDot'
        self.tool(argv=[self.fakeFQPN,
                        '--image-directory', directory,
                        '--dot-directory', directory])

        self.assertTrue(any("image and dot" in line
                            for line in self.collectedOutput))

        self.assertEqual(len(self.digraphRecorder.renderCalls), 1)
        (renderCall,) = self.digraphRecorder.renderCalls
        self.assertEqual(renderCall["directory"], directory)
        self.assertFalse(renderCall['cleanup'])

        self.assertFalse(len(self.digraphRecorder.saveCalls))

        Passing the same directory to --image-directory and --dot-directory
        writes images and dot files to that one directory.
        
stackoverflow/venv/lib/python3.6/site-packages/automat/_test/test_visualize.py