Ejemplo n.º 1
0
def test_enlarge(): # name this function anything, but hopefully something related to the name of the function it is testing
    result = enlarge(3)
    assert result == 300
Ejemplo n.º 2
0
def test_enlarge(): # note the function name is prefixed with "test_"
    result = enlarge(3) # directly invoke the function we want to test
    assert result == 3000000 # describe expectations for desired behavior
Ejemplo n.º 3
0
def test_enlarge():
    result = enlarge(3)
    assert result == 300
Ejemplo n.º 4
0
def test_enlarge(): # note the function name is prefixed with "test_"
    result = enlarge(3) 
    assert result == 9