add a test to be sure unmatched branches raise an exception

This commit is contained in:
Brian Stinson 2015-07-19 22:00:53 -05:00
parent 35f2c1b38a
commit 6c0f8da91a

View file

@ -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'