示例#1
0
def test_ring_returns_ding():
    print(doorbell.ring(6))
    assert doorbell.ring(6) == "Ding"
def test_ring_returns_a_string():
    assert type(doorbell.ring(1)) is str
示例#3
0
def test_ring_returns_dingdong():
    print(doorbell.ring(21))
    assert doorbell.ring(21) == "DingDong"
示例#4
0
def test_ring_returns_dangdong():
    print(doorbell.ring(35))
    assert doorbell.ring(35) == "DangDong"
示例#5
0
def test_ring_returns_an_int():
    print(doorbell.ring(106))
    assert type(doorbell.ring(106)) is int
示例#6
0
def test_ring_returns_dang():
    print(doorbell.ring(7))
    assert doorbell.ring(7) == "Dong"
示例#7
0
def test_ring_returns_dingdang():
    print(doorbell.ring(15))
    assert doorbell.ring(15) == "DingDang"