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