Ejemplo n.º 1
0
 def test_one(self):
     assert hello_solution.hello("World") == "Hello, World!"
Ejemplo n.º 2
0
 def test_hlo(self):
     assert hello_solution.hello('Mike') == 'Hello, Mike!'
Ejemplo n.º 3
0
 def test_sum(self):
     name = 'John'
     assert hello_solution.hello(name) == 'Hello, {}!'.format(name)
Ejemplo n.º 4
0
 def test_hello(self):
     assert hello_solution.hello("friend") == "Hello, friend!"
Ejemplo n.º 5
0
 def test_hello(self):
     assert hello_solution.hello('Andy') == ('Hello, Andy!')
Ejemplo n.º 6
0
 def test_hlo(self):
     assert hello_solution.hello("x") == "Hello, x!"
Ejemplo n.º 7
0
 def test_hello(self):
     assert hello_solution.hello('adam') == 'Hello, adam!'
     assert hello_solution.hello('toby') == 'Hello, toby!'
Ejemplo n.º 8
0
def test_hello(test_name, test_greeting):
    assert hello_solution.hello(test_name) == test_greeting
Ejemplo n.º 9
0
 def test_hello(self):
     output = hello_solution.hello(self.friend_name)
     self.assertEqual(output, 'Hello, {}!'.format(self.friend_name))
Ejemplo n.º 10
0
 def test_hlo2(self):
     assert isinstance(hello_solution.hello("dskgfldfkjf sdgkdlfj"), str)
     assert hello_solution.hello("Mr. X") == "Hello, Mr. X!"
Ejemplo n.º 11
0
 def test_hello(self):
     assert hello_solution.hello('Volodymyr') == "Hello, Volodymyr!"
Ejemplo n.º 12
0
 def test_hlo1(self):
     assert isinstance(hello_solution.hello("world"), str)
     assert hello_solution.hello("Craftsman") == "Hello, Craftsman!"
Ejemplo n.º 13
0
 def test_hlo3(self):
     assert isinstance(hello_solution.hello("3453443"), str)
     assert hello_solution.hello("  Mr. X  ") == "Hello, Mr. X!"
Ejemplo n.º 14
0
 def test_hlo(self):
     assert hello_solution.hello("Peter") == "Hello, Peter!"
Ejemplo n.º 15
0
 def test_hello(self):
     assert hello_solution.hello("John") == "Hello, John!"
Ejemplo n.º 16
0
 def test_hello(self):
     assert hello_solution.hello("Stuart") == "Hello, Stuart!"
Ejemplo n.º 17
0
def test_hello():
    assert hello_solution.hello('John') == "Hello, John!"
Ejemplo n.º 18
0
 def test_sum(self):
     self.assertEqual(hello_solution.hello('xxx'), 'Hello, xxx!')
Ejemplo n.º 19
0
 def test_hello(self):
     self.assertEqual(hello_solution.hello("John"), "Hello, John!")
Ejemplo n.º 20
0
 def test_hlo(self):
     self.assertEqual(hello_solution.hello('John'), 'Hello, John!')
Ejemplo n.º 21
0
 def test_sum(self):
     self.assertEqual(hello("x"), "Hello, World!")
Ejemplo n.º 22
0
def test_hello():
    assert hello_solution.hello("Thomas") == "Hello, Thomas!"
Ejemplo n.º 23
0
 def test_hello(self):
     assert hello_solution.hello('John') == 'Hello, John!'
     assert hello_solution.hello('Marie') == 'Hello, Marie!'
Ejemplo n.º 24
0
def test_invalid_input():
    with pytest.raises(ValueError):
        hello_solution.hello(1)
Ejemplo n.º 25
0
def test_hello():
    assert hello_solution.hello("test_input") == "Hello, test_input!"
Ejemplo n.º 26
0
 def test_hello(self):
     assert hello_solution.hello('Mihail') == 'Hello, Mihail!'