예제 #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
예제 #2
0
파일: test_nrkdl.py 프로젝트: xeor/nrkdl
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
예제 #3
0
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
예제 #4
0
파일: test.py 프로젝트: esp0/nrkdl
def series_live_test():
    r = NRK.series('brannman-sam')
    pass
예제 #5
0
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'
예제 #6
0
파일: test_nrkdl.py 프로젝트: xeor/nrkdl
def test_series_live():
    r = NRK.series('kash-og-zook')
    assert r[0].name == 'Kash og Zook'