def test_create_Tweet_objects(self):
     search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                            self.args)
     results = search.get_100_search_results()
     tweets = search.create_Tweet_objects(results)
     self.assertIsInstance(tweets, list)
     self.assertIsInstance(tweets[0], Tweet)
	def test_store_tweets_in_database_with_invalid_argument(self):
		search = TwitterSearch(self.api, self.db, self.scorer, self.query, self.args)
		try:
			search.store_tweets_in_database("Invalid")
			self.fail()
		except TypeError:
			pass
	def test_create_Tweet_objects_with_invalid_argument(self):
		search = TwitterSearch(self.api, self.db, self.scorer, self.query, self.args)
		try:
			search.create_Tweet_objects("Invalid")
			self.fail()
		except TypeError:
			pass
 def test_store_tweets_in_database_with_invalid_argument(self):
     search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                            self.args)
     try:
         search.store_tweets_in_database("Invalid")
         self.fail()
     except TypeError:
         pass
 def test_create_Tweet_objects_with_invalid_argument(self):
     search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                            self.args)
     try:
         search.create_Tweet_objects("Invalid")
         self.fail()
     except TypeError:
         pass
 def test_create_instance_with_invalid_args_argument(self):
     try:
         search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                                None)
         self.fail()
     except TypeError:
         pass
 def test_create_instance_with_no_location_argument(self):
     invalid_args = {}
     try:
         search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                                invalid_args)
         self.fail()
     except KeyError:
         pass
 def test_get_100_search_results(self):
     search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                            self.args)
     results = search.get_100_search_results()
     self.assertEquals(len(results), 100)
 def test_create_instance_without_required_arguments(self):
     try:
         search = TwitterSearch()
         self.fail()
     except TypeError:
         pass
 def test_create_instance_with_valid_arguments(self):
     search = TwitterSearch(self.api, self.db, self.scorer, self.query,
                            self.args)
     self.assertIsInstance(search, TwitterSearch)
	def test_get_100_search_results(self):
		search = TwitterSearch(self.api, self.db, self.scorer, self.query, self.args)
		results = search.get_100_search_results()
		self.assertEquals(len(results), 100)