コード例 #1
0
 def __get_stored_platforms(self):
     return [Platform.from_dict({"name": "1"})]
コード例 #2
0
 def __get_suggested_platforms(self):
     return [Platform.from_dict({"name": "1"}), Platform.from_dict({"name": "2"})]
コード例 #3
0
 def test_from_dict_returns_platform(self):
     result = Platform.from_dict({"":""})
     self.assertIsInstance(result, Platform)
コード例 #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)
コード例 #5
0
 def test_from_dict(self):
     Platform.from_dict({"":""})