コード例 #1
0
ファイル: hellotest.py プロジェクト: AaronTien/pybindgen
 def test_func(self):
     x = hello.sum(1, 2)
     self.assertEqual(x, 3)
コード例 #2
0
ファイル: hellotest.py プロジェクト: I201821180/NextgenWifi
 def test_func(self):
     x = hello.sum(1, 2)
     self.assertEqual(x, 3)
コード例 #3
0
import hello  #imports everything from hello.py file
#from hello import sum

print hello.sum(1, 78)
print dir(hello)
コード例 #4
0
ファイル: test.py プロジェクト: pypingou/c_python
 def test_hello_sum(self):
     """ Test the sum function. """
     self.assertEqual(hello.sum([1, 2, 3, 4]), 10)