def test_list_services_prints_to_file(self):
		self.ndb.report_observation('github.com', '00')
		filename = 'test_list_file.txt'
		try:
			with open(filename, 'w') as testfile:
				list_services.main(self.ndb, testfile)
		finally:
			os.remove(filename)
	def test_list_services_prints_to_stdout(self):
		# make sure there is at least one observation in the database to report
		self.ndb.report_observation('github.com', '00')
		list_services.main(self.ndb, sys.stdout)