slpkg/tests/test_utils.py
Dimitris Zlatanidis 055145f2bb Added tests
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
2020-02-17 17:14:24 +01:00

17 lines
No EOL
405 B
Python

from slpkg.utils import Utils
def test_dimensional_list():
"""Testing dimesional list util
"""
lists = [[1, 2, 3, 4, 5]]
utils = Utils()
assert [1, 2, 3, 4, 5] == utils.dimensional_list(lists)
def test_remove_dbs():
"""Testing removing doubles item from list
"""
lists = [1, 2, 3, 3, 4, 5, 2, 1]
utils = Utils()
assert [1, 2, 3, 4, 5] == utils.remove_dbs(lists)