"""Test List helpers.""" from ddex_ingester_common.helpers.list import ( have_common_elements ) def test_have_common_elements_true(): """Test have_common_elements returns the correct value.""" first = ['1A', '2B', '3C'] second = ['3C', '4D', '5E'] output = have_common_elements(first, second) assert output is True def test_have_common_elements_false(): """Test have_common_elements returns the correct value.""" first = ['1A', '2B', '3C'] second = ['3CC', '4D', '5E'] output = have_common_elements(first, second) assert output is False def test_have_common_elements_null(): """Test have_common_elements returns the correct value.""" first = [] second = None output = have_common_elements(first, second) assert output is False