Exemplo n.º 1
0
def test_mode_of_dict():
    li = {'a': 'a'}
    with pytest.raises(AttributeError):
        sm(li)
Exemplo n.º 2
0
def test_mode_fixed_uniques(fixed_mode_list_unique):
    li = fixed_mode_list_unique
    assert sm(li) == [1000]
Exemplo n.º 3
0
def test_mode_of_tuple():
    li = (1, 2, 3, 4)
    assert sm(li) == [1, 2, 3, 4]
Exemplo n.º 4
0
def test_mode_fixed_dupes(fixed_mode_list_dupe):
    li = fixed_mode_list_dupe
    assert sm(li) == [12, 44, 100]