"""
run with:
    nosetests test.py

"""
import unittest
import collections
import sys
import nose

from traceback_hl import Colorize


def calc():
    collections.OrderedDict('awef')


class TestHelloWorld(nose.plugins.PluginTester, unittest.TestCase):

    activate = '--color'
    plugins = [Colorize()]

    def makeSuite(self):
        return unittest.TestSuite()

    def test_basic(self):
        try:
            calc()
        except Exception:
            traceback = sys.exc_traceback
            frame = traceback.tb_frame
            self.assertTrue(hasattr(frame, 'f_lineno'))
            self.assertTrue(hasattr(frame, 'f_code'))
            code = frame.f_code
            self.assertTrue(hasattr(code, 'co_filename'))



if __name__ == '__main__':
    nose.main(addplugins=[Colorize()])

@@ -98,16 +98,24 @@
 e%0A%0Afrom 
+my_code.
 tracebac

Fix import error