Пример #1
0
def test_get_pack_invalid_pack():
    with pytest.raises(TypeError):
        get_pack(None, 10)
Пример #2
0
def test_get_pack_invalid_ety():
    with pytest.raises(TypeError):
        get_pack((3, 8), None)
Пример #3
0
def test_get_pack_again():
    expected_output = {3: 4}
    assert get_pack((3, 8), 12) == expected_output
Пример #4
0
def test_get_pack_invalid_test_case():
    expected_output = {}
    assert get_pack((3, 8), 1) == expected_output
Пример #5
0
def test_get_pack():
    expected_output = {5: 2}
    assert get_pack((5, 3), 10) == expected_output