def test_emptystring(self):
     self.assertEqual(greeter(''), 'Hello, Mr Nobody!')
Exemplo n.º 2
0
 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!')
Exemplo n.º 5
0
 def test_with_empty_string(self):
     self.assertEqual(four.greeter(""), 'Hello, Mr Nobody!')
 def test_emptystring(self):
     self.assertEqual(greeter(''), 'Hello, Mr Nobody!')
 def test_if_empty_name(self):
     self.assertEqual(four.greeter(''), 'Hello, Mr Nobody!')
Exemplo n.º 8
0
 def test_if_proper_name_do_the_greet(self):
     self.assertEqual(four.greeter("Olivia"), 'Hello, Olivia!')
 def test_string(self):
     self.assertTrue(greeter('Test'))
Exemplo n.º 10
0
 def test_if_no_name_call_me_Nobody(self):
     self.assertEqual(four.greeter(""), 'Hello, Mr Nobody!')
Exemplo n.º 11
0
 def test_if_input_is_undefines_nameerror(self):
     self.assertRaises(NameError, lambda: four.greeter(potato))
Exemplo n.º 12
0
 def test_if_input_is_integer_typeerror(self):
     self.assertRaises(TypeError, lambda: four.greeter(123))
Exemplo n.º 13
0
 def test_name(self):
     self.assertEqual(four.greeter('Bob'), 'Hello, Bob!')
Exemplo n.º 14
0
 def test_is_empty(self):
     self.assertEqual(four.greeter(''), 'Hello, Mr Nobody!')