#!/usr/bin/env python3

import pytest
import poll_bot

class TestPollBot:

	def test_extract_emoji(self):
		lines_and_emojis = {
			' M)-ystery meat': 'M',
			'🐕 dog sandwiches': '🐕',
			'3 blind mice': '3',
			'🇺🇸 flags': '🇺🇸',
			'<:python3:232720527448342530> python3!': '<:python3:232720527448342530>',
		}
		
		for input, output in lines_and_emojis.items():
			assert poll_bot.extract_emoji(input) == output
add test_pollbot.py