示例#1
0
def test_hello_name():
    assert hello_name('bob')== 'hello bob'
示例#2
0
def test_hello_name():
    assert hello_name('widget') == 'hello widget'
示例#3
0
def test_hello_name():
    assert hello_name('Anantha') == 'hello Anantha'
示例#4
0
 def test_hello_name(self):
     self.assertEqual(hello.hello_name(), "Hello Ghita!")
     self.assertEqual(hello.hello_name("Marian"), "Hello Marian!")
     self.assertRaises(ValueError, hello.hello_name, "M")
     with self.assertRaises(ValueError):
         hello.hello_name("M")
import hello

hello.hello_world()
hello.hello_name("David Hilbert")
 def test_hello_name(self):
     self.assertEqual(hello_name('widget'), 'hello widget')
示例#7
0
 def test_hello_name(self):
     self.assertEqual(hello_name('bob'), 'hello bob')
示例#8
0
def test_hello_name():
    assert hello_name('clark') == 'hello, clark'