示例#1
0
def test_tv_show_replace_director_property():
    tv_show1 = TV_Show("Sailor Moon: Crystal", 2014)
    director1 = Director("John Musker")
    director2 = Director("Ron Clements")
    tv_show1.director = director1
    tv_show1.director = director2
    assert tv_show1.director is director2
示例#2
0
def test_tv_show_director_property():
    tv_show1 = TV_Show("Sailor Moon: Crystal", 2014)
    director1 = Director("Munehisa Sakai")
    tv_show1.director = director1
    assert tv_show1.director is director1