mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
add a test for the the plus branch (which acts like a project)
This commit is contained in:
parent
a6e9d6454e
commit
867964318c
1 changed files with 20 additions and 0 deletions
|
@ -158,3 +158,23 @@ class TestDistgitC6DistroBranch(unittest.TestCase):
|
|||
|
||||
def test_target_gets_set(self):
|
||||
self.assertEqual(self.d.target, 'c6')
|
||||
|
||||
class TestDistgitC6PlusDistroBranch(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.branchstring = 'c6-plus'
|
||||
self.d = DistGitDirectory(self.branchstring)
|
||||
|
||||
def test_signame_gets_set(self):
|
||||
self.assertEqual(self.d.signame, 'centos')
|
||||
|
||||
def test_centosversion_gets_set(self):
|
||||
self.assertEqual(self.d.centosversion, '6')
|
||||
|
||||
def test_projectname_gets_set(self):
|
||||
self.assertEqual(self.d.projectname, 'plus')
|
||||
|
||||
def test_releasename_gets_set(self):
|
||||
self.assertEqual(self.d.releasename, None)
|
||||
|
||||
def test_target_gets_set(self):
|
||||
self.assertEqual(self.d.target, 'c6-plus')
|
||||
|
|
Loading…
Add table
Reference in a new issue