From 6c0f8da91aa2ed85e74af1bccd6c98ca15fe2f7c Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jul 20 2015 03:00:53 +0000 Subject: add a test to be sure unmatched branches raise an exception --- diff --git a/tests/test_distgit.py b/tests/test_distgit.py index 0e62f1c..c8c94d9 100644 --- a/tests/test_distgit.py +++ b/tests/test_distgit.py @@ -12,6 +12,13 @@ class TestDistGitNothing(unittest.TestCase): with self.assertRaises(TypeError): d = DistGitDirectory() +class TestDistGitInvalid(unittest.TestCase): + def test_invalid_branchstring_raises(self): + self.branchstring = 'nope-not-a-branch' + + with self.assertRaises(ValueError): + self.d = DistGitDirectory(self.branchstring) + class TestDistgitOnlySig(unittest.TestCase): def setUp(self): self.branchstring = 'sig-cloud7'