def test_init_without_process(self): self.connector = Mock() self.path = os.path.dirname(os.path.realpath(__file__)) self.downloader = Downloader( self.connector, self.path )
def setUp(self): self.connector = Mock() self.subprocess = Mock() self.path = os.path.dirname(os.path.realpath(__file__)) self.downloader = Downloader( self.connector, self.path, self.subprocess )