Beispiel #1
0
    def test_change_indexerid(self):
        show = Series(1, 1, "en")
        show.name = "show name"
        show.network = "cbs"
        show.genre = "crime"
        show.runtime = 40
        show.status = "Ended"
        show.default_ep_status = "5"
        show.airs = "monday"
        show.start_year = 1987

        show.save_to_db()
        show._load_from_db()

        show.indexerid = 2
        show.save_to_db()
        show._load_from_db()

        self.assertEqual(show.indexerid, 2)
Beispiel #2
0
    def test_change_indexerid(self):
        show = Series(1, 1, "en")
        show.name = "show name"
        show.network = "cbs"
        show.genre = "crime"
        show.runtime = 40
        show.status = "Ended"
        show.default_ep_status = "5"
        show.airs = "monday"
        show.start_year = 1987

        show.save_to_db()
        show._load_from_db()

        show.indexerid = 2
        show.save_to_db()
        show._load_from_db()

        self.assertEqual(show.indexerid, 2)
Beispiel #3
0
 def test_set_name(self):
     show = Series(1, 1, "en")
     show.name = "newName"
     show.save_to_db()
     show._load_from_db()
     self.assertEqual(show.name, "newName")
Beispiel #4
0
 def test_set_name(self):
     show = Series(1, 1, "en")
     show.name = "newName"
     show.save_to_db()
     show._load_from_db()
     self.assertEqual(show.name, "newName")