Exemple #1
0
def test_hello_name():
    assert hello_name('bob')== 'hello bob'
Exemple #2
0
def test_hello_name():
    assert hello_name('widget') == 'hello widget'
Exemple #3
0
def test_hello_name():
    assert hello_name('Anantha') == 'hello Anantha'
Exemple #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')
 def test_hello_name(self):
     self.assertEqual(hello_name('bob'), 'hello bob')
Exemple #8
0
def test_hello_name():
    assert hello_name('clark') == 'hello, clark'