Ejemplo n.º 1
0
 def test_a_name_given(self):
     self.assertEqual(two_fer("Alice"), "One for Alice, one for me.")
Ejemplo n.º 2
0
 def test_empty(self):
     self.assertEqual(two_fer.two_fer(), 'One for you, one for me.')
def test_function_name_alice():
    assert two_fer(name="Alice") == "One for Alice, two for me"
Ejemplo n.º 4
0
 def test_a_name_given(self):
     self.assertEqual(two_fer("Tony"), "One for Tony, one for me.")
Ejemplo n.º 5
0
 def test_alice(self):
     self.assertEqual(two_fer.two_fer("Alice"),
                      "One for Alice, one for me.")
Ejemplo n.º 6
0
 def test_empty(self):
     self.assertEqual(two_fer.two_fer(), 'One for you, one for me.')
Ejemplo n.º 7
0
 def test_a_name_given(self):
     """Test giving Parameter Alice to two_fer"""
     self.assertEqual(two_fer("Alice"), "One for Alice, one for me.")
Ejemplo n.º 8
0
 def test_no_name_provided(self):
     self.assertEqual(two_fer(), 'One for you, one for me.')
Ejemplo n.º 9
0
 def test_a_given_name(self):
     self.assertEqual(two_fer('Alice'), 'One for Alice, one for me.')
Ejemplo n.º 10
0
 def test_no_name_given(self):
     self.assertEqual(two_fer(), 'One for you, one for me.')
Ejemplo n.º 11
0
 def test_a_given_another_name(self):
     self.assertEqual(two_fer('John'), 'One for John, one for me.')
Ejemplo n.º 12
0
 def test_another_name_given(self):
     self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")
Ejemplo n.º 13
0
 def test_a_name_given(self):
     self.assertEqual(two_fer("Alice"), "One for Alice, one for me.")
Ejemplo n.º 14
0
 def test_eve(self):
     self.assertEqual(two_fer.two_fer("Eve"), "One for Eve, one for me.")
Ejemplo n.º 15
0
 def test_bad_case(self):
     self.assertEqual(two_fer(['Bob']), None)
Ejemplo n.º 16
0
def test_given_name():
    assert two_fer("Alice") == "One for Alice, one for me."
Ejemplo n.º 17
0
 def test_edge_case(self):
     self.assertEqual(two_fer(""), "One for you, one for me.")
Ejemplo n.º 18
0
def test_given_name_with_spaces_around():
    assert two_fer("   Alice        ") == "One for Alice, one for me."
Ejemplo n.º 19
0
 def test_no_name_given(self):
     """Test no name given to two_fer function"""
     self.assertEqual(two_fer(), 'One for you, one for me.')
Ejemplo n.º 20
0
def test_empty_name():
    assert two_fer("") == ONE_FOR_YOU
Ejemplo n.º 21
0
 def test_another_name_given(self):
     """Test giving Parameter Bob to two_fer"""
     self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")
Ejemplo n.º 22
0
def test_none_name():
    assert two_fer(None) == ONE_FOR_YOU
Ejemplo n.º 23
0
 def test_another_name_given(self):
     self.assertEqual(two_fer("Carol"), "One for Carol, one for me.")
Ejemplo n.º 24
0
def test_blank_name():
    assert two_fer(" ") == ONE_FOR_YOU
Ejemplo n.º 25
0
 def test_bob(self):
     self.assertEqual(two_fer.two_fer("Bob"), "One for Bob, one for me.")
Ejemplo n.º 26
0
def test_several_blanks_name():
    assert two_fer("     ") == ONE_FOR_YOU
def test_function_no_name():
    assert two_fer() == "One for you, two for me"
Ejemplo n.º 28
0
def test_newline_name():
    assert two_fer("\n") == ONE_FOR_YOU
def test_function_name_jim():
    assert two_fer(name="Bob") == "One for Bob, two for me"
Ejemplo n.º 30
0
def test_number_name():
    assert two_fer(17) == ONE_FOR_YOU
Ejemplo n.º 31
0
 def test_another_name_given(self):
     self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")
Ejemplo n.º 32
0
def test_object_name():
    assert two_fer(object()) == ONE_FOR_YOU
Ejemplo n.º 33
0
 def test_bad_case_1(self):
     self.assertEqual(two_fer(1), None)
Ejemplo n.º 34
0
def test_no_name():
    assert two_fer() == ONE_FOR_YOU
Ejemplo n.º 35
0
 def test_no_name_given(self):
     self.assertEqual(two_fer(), "One for you, one for me.")
Ejemplo n.º 36
0
 def test_bob(self):
     self.assertEqual(two_fer.two_fer("Bob"), "One for Bob, one for me.")