Ejemplo n.º 1
0
 def test_raw_data(self):
     """
     Tests ``raw_data`` returned value.
     """
     parser = PersonParser(flickr_id=self.FLICKR_ID, client=self.api_client)
     data = parser.raw_data()
     self.assertEquals(data.get("nsid"), self.FLICKR_ID)
Ejemplo n.º 2
0
 def test_formatted_data(self):
     """
     Tests ``formatted_data`` returned value.
     """
     parser = PersonParser(flickr_id=self.FLICKR_ID, client=self.api_client)
     data = parser.formatted_data()
     self.assertEquals(len(data), 1)
     self.assertEquals(data["kwargs"]["flickr_id"], self.FLICKR_ID)
     self.assertEquals("fk_fields" in data, False)