def testCreateTag(self): scm = Git() self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False) self.assertEqual( scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', False), 0) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
def testCreateAndPushRemoteTag(self): scm = Git(Process(quiet=True)) self.clone() self.assertEqual( scm.create_tag(self.clonedir, '2.6', 'testpackage', '2.6', True), 0) self.assertEqual(scm.tag_exists(self.clonedir, '2.6'), True) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
def testCreateExistingTag(self): scm = Git(Process(quiet=True)) self.assertEqual( scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', False), 0) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True) self.assertRaises(SystemExit, scm.create_tag, self.packagedir, '2.6', 'testpackage', '2.6', False)
def testCreateAndPushLocalTag(self): scm = Git() self.assertEqual( scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', True), 0) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
def testTagExists(self): scm = Git() self.tag(self.packagedir, '2.6') self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
def testCreateAndPushRemoteTag(self): scm = Git(Process(quiet=True)) self.clone() self.assertEqual(scm.create_tag(self.clonedir, "2.6", "testpackage", "2.6", True), 0) self.assertEqual(scm.tag_exists(self.clonedir, "2.6"), True) self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
def testTagDoesNotExist(self): scm = Git() self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False)
def testCreateExistingTag(self): scm = Git(Process(quiet=True)) self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0) self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True) self.assertRaises(SystemExit, scm.create_tag, self.packagedir, "2.6", "testpackage", "2.6", False)
def testCreateAndPushLocalTag(self): scm = Git() self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", True), 0) self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
def testCreateTag(self): scm = Git() self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), False) self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0) self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
def testTagExists(self): scm = Git() self.tag(self.packagedir, "2.6") self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
def testTagDoesNotExist(self): scm = Git() self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), False)
def testCreateAndPushLocalTag(self): scm = Git() self.assertEqual(scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', True), 0) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
def testCreateTag(self): scm = Git() self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False) self.assertEqual(scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', False), 0) self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)