def __get_stored_platforms(self): return [Platform.from_dict({"name": "1"})]
def __get_suggested_platforms(self): return [Platform.from_dict({"name": "1"}), Platform.from_dict({"name": "2"})]
def test_from_dict_returns_platform(self): result = Platform.from_dict({"":""}) self.assertIsInstance(result, Platform)
def test_from_dict_performs_mappings(self): d = {"name": "name", "description": "description"} result = Platform.from_dict(d) self.assertEqual(d["name"], result.name) self.assertEqual(d["description"], result.description)
def test_from_dict(self): Platform.from_dict({"":""})