def test_get_deck_no_valid_id(self): handler = DeckHandler(self.new_dir) user_id = "TestUser" deck_id = "xyz" deck = handler.get_deck(user_id, deck_id) self.assertEqual({}, deck)
def test_get_deck(self): handler = DeckHandler(self.new_dir) user_id = "TestUser" deck_id = "valide" deck = handler.get_deck(user_id, deck_id) testDict = self.testdict testDict.update({'creatorname': deck['creatorname']}) testDict.update({'id': deck['id']}) self.assertIsNotNone(deck) self.assertEqual(self.testdict, deck)