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