Between numbers

Report a typo

Let's say you are writing tests for a function number_between(first, second), which takes two numbers (first < second) and returns a random floating-point number between them, exclusively.

Below you see a part of the tests. Please type in the answer box the names of the correct assert methods that you would write instead of [...] in the code. Separate the first and the second name by a space.

def test_number_between(self):
    value = number_between(first, second)

    # which assert methods should be used here? 
    self.[...](value, first)
    self.[...](value, second)
Enter a short text
___

Create a free account to access the full topic