From a6e9d6454e646380ba91dea9d9919b1f90e1ea15 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jul 20 2015 03:08:11 +0000 Subject: add tests for CentOS6 and CentOS7 branches --- diff --git a/tests/test_distgit.py b/tests/test_distgit.py index c8c94d9..b3726c8 100644 --- a/tests/test_distgit.py +++ b/tests/test_distgit.py @@ -119,3 +119,42 @@ class TestDistgitSigProjectAndRelease(unittest.TestCase): def test_target_gets_set(self): self.assertEqual(self.d.target, 'cloud7-openstack-kilo-el7') +class TestDistgitC7DistroBranch(unittest.TestCase): + def setUp(self): + self.branchstring = 'c7' + 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, '7') + + def test_projectname_gets_set(self): + self.assertEqual(self.d.projectname, None) + + def test_releasename_gets_set(self): + self.assertEqual(self.d.releasename, None) + + def test_target_gets_set(self): + self.assertEqual(self.d.target, 'c7') + +class TestDistgitC6DistroBranch(unittest.TestCase): + def setUp(self): + self.branchstring = 'c6' + 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, None) + + def test_releasename_gets_set(self): + self.assertEqual(self.d.releasename, None) + + def test_target_gets_set(self): + self.assertEqual(self.d.target, 'c6')