Exemplo n.º 1
0
    def test_bad_tier(self):
        stream = iter(['BadTierName'])

        with assert_raises(ValueError):
            tier_from_reader(stream)
Exemplo n.º 2
0
    def test_text_tier(self, TextTierMock):
        stream = iter(['TextTier'])
        tier = tier_from_reader(stream)

        assert_in(mock.call.from_reader(stream),
                  TextTierMock.method_calls)
Exemplo n.º 3
0
    def test_interval_tier(self, IntervalTierMock):
        stream = iter(['IntervalTier'])
        tier = tier_from_reader(stream)

        assert_in(mock.call.from_reader(stream),
                  IntervalTierMock.method_calls)
Exemplo n.º 4
0
    def test_bad_tier(self):
        stream = iter(['BadTierName'])

        with assert_raises(ValueError):
            tier_from_reader(stream)
Exemplo n.º 5
0
    def test_text_tier(self, TextTierMock):
        stream = iter(['TextTier'])
        tier = tier_from_reader(stream)

        assert_in(mock.call.from_reader(stream), TextTierMock.method_calls)
Exemplo n.º 6
0
    def test_interval_tier(self, IntervalTierMock):
        stream = iter(['IntervalTier'])
        tier = tier_from_reader(stream)

        assert_in(mock.call.from_reader(stream), IntervalTierMock.method_calls)