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