<gh_stars>1-10


from unittest import TestCase
from expects import expect, equal, raise_error 

from slender import List 

class TestLShift(TestCase):
    def setUp(self):
        self.l = List([1, 2, 3, 2])

    def test_lshift_if_other_is_none(self):
        expect((self.l << None).to_list()).to(equal([1, 2, 3, 2, None]))
        
    def test_lshift_if_other_is_not_none(self):
        expect((self.l << [1, 3]).to_list()).to(equal([1, 2, 3, 2, [1, 3]]))
 






from unittest import TestCase
from expects import expect, equal, raise_error 

from slender import List 

class TestLShift(TestCase):
    def setUp(self):
        self.l = List([1, 2, 3, 2])

    def test_lshift_if_other_is_none(self):
        expect((self.l << None).to_list()).to(equal([1, 2, 3, 2, None]))
        
    def test_lshift_if_other_is_not_none(self):
        expect((self.l << [1, 3]).to_list()).to(equal([1, 2, 3, 2, [1, 3]]))