Beispiel #1
0
def test_sequence_multiple_ellipsis():
    sequence = Sequence(['foo', '...', 'bar', '...'])

    with pytest.raises(ValueError):
        sequence.expand(['foo'])
Beispiel #2
0
    def test_multiple_ellipsis(self):
        sequence = Sequence(["foo", "...", "bar", "..."])

        with self.assertRaises(ValueError):
            sequence.expand(["foo"])
Beispiel #3
0
    def test_multiple_ellipsis(self):
        sequence = Sequence(['foo', '...', 'bar', '...'])

        with self.assertRaises(ValueError):
            sequence.expand(['foo'])