view tests/unit.py @ 12:a0ff003319ec

foo
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 28 Sep 2013 06:40:25 -0700
parents 546695da018c
children fc91a93fcaee
line wrap: on
line source

#!/usr/bin/env python

"""
unit tests
"""

import os
import sys
import unittest

from commitwatcher import FeedAgentDiff

# globals
here = os.path.dirname(os.path.abspath(__file__))

class CommitWatcherUnitTest(unittest.TestCase):

    def test_patch(self):
        """test parsing the files from a patch"""

        diff = os.path.join(here, '41701d2c0341.diff')
        files = FeedAgentDiff.lsdiff(diff)

if __name__ == '__main__':
    unittest.main()