diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_git_command.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_git_command.py b/tests/test_git_command.py index 5ceb0b33..51171a32 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
@@ -68,3 +68,11 @@ class UserAgentUnitTest(unittest.TestCase): | |||
68 | # the general form. | 68 | # the general form. |
69 | m = re.match(r'^git-repo/[^ ]+ ([^ ]+) git/[^ ]+ Python/[0-9.]+', ua) | 69 | m = re.match(r'^git-repo/[^ ]+ ([^ ]+) git/[^ ]+ Python/[0-9.]+', ua) |
70 | self.assertIsNotNone(m) | 70 | self.assertIsNotNone(m) |
71 | |||
72 | def test_smoke_git(self): | ||
73 | """Make sure git UA returns something useful.""" | ||
74 | ua = git_command.user_agent.git | ||
75 | # We can't dive too deep because of OS/tool differences, but we can check | ||
76 | # the general form. | ||
77 | m = re.match(r'^git/[^ ]+ ([^ ]+) git-repo/[^ ]+', ua) | ||
78 | self.assertIsNotNone(m) | ||