In [ ]:
# Required boilerplate
import sys
!{sys.executable} -m pip install pytest
!{sys.executable} -m pip install ipytest

import ipytest.magics
import pytest

__file__ = 'testing1_exercise.ipynb'

1. Creating your first test case

There is an implementation for get_divisible_by_five function in the cell below. Your task is to create a test case for this function to verify that it works correctly.

In [ ]:
def get_divisible_by_five(numbers):
    '''Returns a list of numbers which are divisible by five in the list got as an argument'''
    result = []
    for num in numbers:
        if not num % 5:
            result.append(num)

    return result
In [ ]:
%%run_pytest[clean]

def test_get_divisible_by_five():
    # Your implementation here