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

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

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

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