示例#1
0
import helloWorld

print(helloWorld.helloWorld())



import helloWorld

print "INITIALIZING HELLO WORLD"
print "userSetup.py says '{}'".format(helloWorld.helloWorld())
def test_helloWorld():
    nose.tools.eq_(helloWorld.helloWorld(), "Hello World!")
 def test_add(self):
     self.assertEqual(helloWorld.helloWorld(), "hello python sonar")
def test_helloWorld():
    assert helloWorld.helloWorld() == "hello world"
 def test_greeting(self):
     greeting = helloWorld.helloWorld("Hello World!")
     self.assertEqual(greeting, "Hello World!")
	def test_greeting(self):
		greeting = helloWorld.helloWorld("Hello World!")
		self.assertEqual(greeting, "Hello World!")