File tree 4 files changed +39
-0
lines changed
4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 5
5
<projects >
6
6
</projects >
7
7
<buildSpec >
8
+ <buildCommand >
9
+ <name >org.python.pydev.PyDevBuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
8
13
</buildSpec >
9
14
<natures >
15
+ <nature >org.python.pydev.pythonNature</nature >
10
16
</natures >
11
17
</projectDescription >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
+ <?eclipse-pydev version =" 1.0" ?><pydev_project >
3
+ <pydev_property name =" org.python.pydev.PYTHON_PROJECT_INTERPRETER" >Default</pydev_property >
4
+ <pydev_property name =" org.python.pydev.PYTHON_PROJECT_VERSION" >python interpreter</pydev_property >
5
+ <pydev_pathproperty name =" org.python.pydev.PROJECT_SOURCE_PATH" >
6
+ <path >/${PROJECT_DIR_NAME}/src/main/python</path >
7
+ <path >/${PROJECT_DIR_NAME}/src/test/python</path >
8
+ </pydev_pathproperty >
9
+ </pydev_project >
Original file line number Diff line number Diff line change
1
+
2
+ def getHelloWorld ():
3
+ return "Hello World!"
4
+
5
+
6
+ def main ():
7
+ print (getHelloWorld ())
8
+
9
+ if __name__ == "__main__" :
10
+ main ()
Original file line number Diff line number Diff line change
1
+ import unittest
2
+ import helloworld
3
+
4
+ class TestHelloWorld (unittest .TestCase ):
5
+
6
+ def setUp (self ):
7
+ pass
8
+
9
+ def tearDown (self ):
10
+ pass
11
+
12
+
13
+ def testStr (self ):
14
+ self .assertEquals (helloworld .getHelloWorld (), "Hello World!" )
You can’t perform that action at this time.
0 commit comments