Ejemplo n.º 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")
Ejemplo n.º 2
0
import sys

from examples import main

if __name__ == '__main__':
    main()
Ejemplo n.º 3
0
import examples

examples.main()
Ejemplo n.º 4
0
 def get(self, food_list):
     return {'data': examples.main(food_list)}
Ejemplo n.º 5
0
def init():
    print('Generating examples.')
    examples.main()
Ejemplo n.º 6
0
Archivo: gr_ext.py Proyecto: kaigaox/gr
def init():
    print('Generating examples.')
    examples.main()