import unittest

from stacker.lookups.handlers.split import SplitLookup


class TestSplitLookup(unittest.TestCase):
    def test_single_character_split(self):
        value = ",::a,b,c"
        expected = ["a", "b", "c"]
        assert SplitLookup.handle(value) == expected

    def test_multi_character_split(self):
        value = ",,::a,,b,c"
        expected = ["a", "b,c"]
        assert SplitLookup.handle(value) == expected

    def test_invalid_value_split(self):
        value = ",:a,b,c"
        with self.assertRaises(ValueError):
            SplitLookup.handle(value)

873b6b5cd1539aa2ca6f981371b68545f9979ff6
<mask token>


class TestSplitLookup(unittest.TestCase):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class TestSplitLookup(unittest.TestCase):

    def test_single_character_split(self):
        value = ',::a,b,c'
        expected = ['a', 'b', 'c']
        assert SplitLookup.handle(value) == expected
    <mask token>
    <mask token>

<mask token>


class TestSplitLookup(unittest.TestCase):

    def test_single_character_split(self):
        value = ',::a,b,c'
        expected = ['a', 'b', 'c']
        assert SplitLookup.handle(value) == expected

    def test_multi_character_split(self):
        value = ',,::a,,b,c'
        expected = ['a', 'b,c']
        assert SplitLookup.handle(value) == expected

    def test_invalid_value_split(self):
        value = ',:a,b,c'
        with self.assertRaises(ValueError):
            SplitLookup.handle(value)

import unittest
from stacker.lookups.handlers.split import SplitLookup


class TestSplitLookup(unittest.TestCase):

    def test_single_character_split(self):
        value = ',::a,b,c'
        expected = ['a', 'b', 'c']
        assert SplitLookup.handle(value) == expected

    def test_multi_character_split(self):
        value = ',,::a,,b,c'
        expected = ['a', 'b,c']
        assert SplitLookup.handle(value) == expected

    def test_invalid_value_split(self):
        value = ',:a,b,c'
        with self.assertRaises(ValueError):
            SplitLookup.handle(value)

import unittest

from stacker.lookups.handlers.split import SplitLookup


class TestSplitLookup(unittest.TestCase):
    def test_single_character_split(self):
        value = ",::a,b,c"
        expected = ["a", "b", "c"]
        assert SplitLookup.handle(value) == expected

    def test_multi_character_split(self):
        value = ",,::a,,b,c"
        expected = ["a", "b,c"]
        assert SplitLookup.handle(value) == expected

    def test_invalid_value_split(self):
        value = ",:a,b,c"
        with self.assertRaises(ValueError):
            SplitLookup.handle(value)
