mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
add a test to be sure unmatched branches raise an exception
This commit is contained in:
parent
35f2c1b38a
commit
6c0f8da91a
1 changed files with 7 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue