コード例 #1
0
ファイル: test_example_copy.py プロジェクト: ArneBab/PyHurd
    def test_0_copy_data (self):
        # Write the test data
        f = open(file_path1, "w")
        f.write(test_data)
        f.close()
        # copy the file
        main(["copy.py", file_path1, file_path2])
        # Get the copied data
        f = open(file_path2, "r")
        data = f.read()
        f.close()

        # Check the data
        self.assertEqual (data, test_data, "Data of copied file doesn't match data written into the original file")
コード例 #2
0
import sys

from examples import main

if __name__ == '__main__':
    main()
コード例 #3
0
ファイル: __run__.py プロジェクト: zlatozar/coding-sessions
import examples

examples.main()
コード例 #4
0
ファイル: app.py プロジェクト: jsreid13/HackThe6ix
 def get(self, food_list):
     return {'data': examples.main(food_list)}
コード例 #5
0
ファイル: gr_ext.py プロジェクト: albertocabello/gr
def init():
    print('Generating examples.')
    examples.main()
コード例 #6
0
ファイル: gr_ext.py プロジェクト: kaigaox/gr
def init():
    print('Generating examples.')
    examples.main()