Beispiel #1
0
    def test_items(self):
        # check to make sure that both ways of getting items work
        for items in [Item.get_items(self.user), self.user.get_items(), Item.get_all_items()]:
            # check the item count
            self.assertEqual(len(items), 4)

            self.assertIn(self.textbook_3091_1, items)
            self.assertIn(self.textbook_3091_2, items)
            self.assertIn(self.video_5111, items)
            self.assertIn(self.cheat_sheets, items)