<s> import unittest <EOL> from ipinfo . utils import ip_list_from_string <EOL> class TestUtils ( unittest . TestCase ) : <EOL> def test_ip_from_string ( self ) : <EOL> string_with_ips = '<STR_LIT>' <EOL> ip_list = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . assertItemsEqual ( ip_list_from_string ( string_with_ips ) , ip_list ) <EOL> def test_ip_from_string_without_ips ( self ) : <EOL> string_with_ips = '<STR_LIT>' <EOL> self . assertItemsEqual ( ip_list_from_string ( string_with_ips ) , [ ] ) </s>
