コード例 #1
0
def test_ring_returns_ding():
    print(doorbell.ring(6))
    assert doorbell.ring(6) == "Ding"
コード例 #2
0
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"