Exemplo n.º 1
0
def test_seasons_live():
    r = NRK.series('brannmann-sam')
    x = sorted([s.season_number for s in r[0].seasons()])
    assert x == [1, 2, 3, 4, 5]

    eps_in_third_season = sorted([s for s in r[0].seasons()], key=lambda s: s.season_number)
    # find another way to test this as the result will be
    # invalid when nrk loose its usage rights to this season
    assert len(eps_in_third_season[2].episodes()) == 52
Exemplo n.º 2
0
def test_seasons_live():
    r = NRK.series('brannmann-sam')
    x = sorted([s.season_number for s in r[0].seasons()])
    assert x == [1, 2, 3, 4, 5]

    eps_in_third_season = sorted([s for s in r[0].seasons()], key=lambda s: s.season_number)
    # find another way to test this as the result will be
    # invalid when nrk loose its usage rights to this season
    assert len(eps_in_third_season[2].episodes()) == 52
Exemplo n.º 3
0
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
Exemplo n.º 4
0
Arquivo: test.py Projeto: esp0/nrkdl
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
Exemplo n.º 5
0
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'
Exemplo n.º 6
0
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'