def test_raw_data(self): """ Tests ``raw_data`` returned value. """ parser = PhotosetParser(flickr_id=self.FLICKR_ID, client=self.api_client) data = parser.raw_data() self.assertEquals(data["id"], self.FLICKR_ID)
def test_formatted_data(self): """ Tests ``formatted_data`` returned value. """ parser = PhotosetParser(flickr_id=self.FLICKR_ID, client=self.api_client) data = parser.formatted_data() self.assertEquals(len(data), 2) self.assertEquals(data["kwargs"]["flickr_id"], self.FLICKR_ID) self.assertEquals("fk_fields" in data, True) self.assertEquals(len(data["fk_fields"]), 2) self.assertEquals("owner" in data["fk_fields"], True) self.assertEquals("primary" in data["fk_fields"], True)