Learn Python the Hard Way Exercise 48 help
I am working through Learn Python The Hard Way and have reached a challenge with Exercise 48. You are given a large amount of code as a unit test and asks us to create a function in order to make the unit tests pass. I am not sure what exactly this code should look like. I have pasted in one of the functions as a reference. They all look similar to this one and I'm sure if I understand how to make this one pass, I can figure out the rest. Thanks guys!

    from nose.tools import *
    from ex48 import lexicon


    def test_directions():
        assert_equal(lexicon.scan("north"), [('direction', 'north')])
        result = lexicon.scan("north south east")
        assert_equal(result, [('direction', 'north'),
                             ('direction', 'south'),
                             ('direction', 'east')])

Learn Python the Hard Way Exercise 48 help
===

I am working through Learn Python The Hard Way and have reached a challenge with Exercise 48. You are given a large amount of code as a unit test and asks us to create a function in order to make the unit tests pass. I am not sure what exactly this code should look like. I have pasted in one of the functions as a reference. They all look similar to this one and I'm sure if I understand how to make this one pass, I can figure out the rest. Thanks guys!

    from nose.tools import *
    from ex48 import lexicon


    def test_directions():
        assert_equal(lexicon.scan("north"), [('direction', 'north')])
        result = lexicon.scan("north south east")
        assert_equal(result, [('direction', 'north'),
                             ('direction', 'south'),
                             ('direction', 'east')])
