Example #1
0
    def test_set_info(self):
        card = Card()
        card.set_info("description", "For testing.")
        card.set_info("art", 1, True)
        card.set_info("art", 2)

        assert card.get_info("description")[0] == "For testing."
        assert 1 in card.get_info("art")
        assert 2 in card.get_info("art")
Example #2
0
    def test_get_info(self):
        card = Card()
        card.set_info("description", "For testing.")

        assert card.get_info("art") is None
        assert card.get_info("description")[0] == "For testing."