def test_save_json_blog_to_disk(self):
     gnip_search_client = GnipSearchClient()
     content = '{"results": [{"id": 123}]}'
     json_blob = json.loads(content)
     gnip_search_client.save_json_blog_to_disk(json_blob, 2)
     loaded_json_blob = gnip_search_client.load_json_blob(2)
     self.assertEqual(json_blob, loaded_json_blob)
     os.remove(gnip_search_client.get_file_path(2))
 def test_get_file_path(self):
     gnip_search_client = GnipSearchClient()
     expected = os.getcwd() + '/Gnip_Client/Gnip_Search_1.json'
     self.assertEqual(expected, gnip_search_client.get_file_path(1))