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"})]
Ejemplo n.º 3
0
 def test_from_dict_returns_platform(self):
     result = Platform.from_dict({"":""})
     self.assertIsInstance(result, Platform)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 def test_from_dict(self):
     Platform.from_dict({"":""})