Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2013 23:05
What would you like to do?
Test suite for, at
import unittest
from StringIO import StringIO
from anagrams import find_anagrams
class AnagramsTestCase(unittest.TestCase):
"""Tests for"""
def test_finds_simple_anagrams(self):
"""Does it find anagrams for 'art'?"""
anas = find_anagrams(StringIO("art\nrat\ntar"))
self.assertEqual({"art": ["art", "rat", "tar"]}, anas)
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment