Mercurial > hg > CommitWatcher
annotate 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 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 """ | |
4 unit tests | |
5 """ | |
6 | |
7 import os | |
8 import sys | |
9 import unittest | |
10 | |
11
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
11 from commitwatcher import FeedAgentDiff |
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
12 |
0 | 13 # globals |
14 here = os.path.dirname(os.path.abspath(__file__)) | |
15 | |
11
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
16 class CommitWatcherUnitTest(unittest.TestCase): |
0 | 17 |
11
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
18 def test_patch(self): |
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
19 """test parsing the files from a patch""" |
546695da018c
commitwatcher/agent.py tests/unit.py
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
20 |
12 | 21 diff = os.path.join(here, '41701d2c0341.diff') |
22 files = FeedAgentDiff.lsdiff(diff) | |
0 | 23 |
24 if __name__ == '__main__': | |
25 unittest.main() | |
26 |