Exemple #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
Exemple #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
Exemple #3
0
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
Exemple #4
0
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
Exemple #5
0
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'
Exemple #6
0
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'