def test_div(self):
     result = div(6, 3)
     self.assertEqual(result, 2)
Exemple #2
0
def test_div_2():
    assert div(15, 3) == 5
Exemple #3
0
def test_div_for_float():
    assert div(2, 2) == 1
Exemple #4
0
def test_div():
    assert div(4, 2) == 2
Exemple #5
0
def test_div_for_float():
    assert div(1, 2) == 0.5