def test_emptystring(self): self.assertEqual(greeter(''), 'Hello, Mr Nobody!')
def test_with_my_name(self): self.assertEqual(four.greeter("Slim Shady"), 'Hello, Slim Shady!')
def test_string(self): self.assertTrue(greeter('Test'))
def test_with_name(self): self.assertEqual(four.greeter('Anna Török'), 'Hello, Anna Török!')
def test_with_empty_string(self): self.assertEqual(four.greeter(""), 'Hello, Mr Nobody!')
def test_if_empty_name(self): self.assertEqual(four.greeter(''), 'Hello, Mr Nobody!')
def test_if_proper_name_do_the_greet(self): self.assertEqual(four.greeter("Olivia"), 'Hello, Olivia!')
def test_if_no_name_call_me_Nobody(self): self.assertEqual(four.greeter(""), 'Hello, Mr Nobody!')
def test_if_input_is_undefines_nameerror(self): self.assertRaises(NameError, lambda: four.greeter(potato))
def test_if_input_is_integer_typeerror(self): self.assertRaises(TypeError, lambda: four.greeter(123))
def test_name(self): self.assertEqual(four.greeter('Bob'), 'Hello, Bob!')
def test_is_empty(self): self.assertEqual(four.greeter(''), 'Hello, Mr Nobody!')