예제 #1
0
    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
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()