Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/a/Dalton-HEAD/dalton/tests/__init__.py   Dalton(Download)
    def testLoad(self):
        fw = dalton.FileWrapper('step_0_response.txt', 
            os.path.join(here, 'test_files'))
        content = fw.load()
        assert 'The document has moved' in content
    def testSave(self):
        fw = dalton.FileWrapper('test_output.txt', 
            os.path.join(here, 'test_files'))
        fw.write('some_content')
        content = fw.load()

src/d/a/dalton-1.0/dalton/tests/__init__.py   dalton(Download)
    def testLoad(self):
        fw = dalton.FileWrapper('step_0_response.txt', 
            os.path.join(here, 'test_files'))
        content = fw.load()
        assert 'The document has moved' in content
    def testSave(self):
        fw = dalton.FileWrapper('test_output.txt', 
            os.path.join(here, 'test_files'))
        fw.write('some_content')
        content = fw.load()