示例#1
0
def test_dog_initialization():
    d = my_class.Dog("Azor")
    assert d.name == "Azor"
示例#2
0
def test_dog_speak():
    d = my_class.Dog("Azor")
    assert d.speak() == "hau-hau. Jestem Azor"
示例#3
0
def test_dog_initialization():
    d = my_class.Dog('Azor')
    assert d.name == 'Azor'
示例#4
0
def test_dog_speak():
    d = my_class.Dog('Azor')
    assert d.speak() == 'hau hau. Jestem Azor.'
示例#5
0
def test_dog_speak():
    d = my_class.Dog('Azor')
    assert d.speak() == 'Jestem Azor "hau-hau"'