def test_parse_target(self): """Test for parse target""" package = { 'name': 'vsc-test', 'excluded_pkgs_rpm': [], } setup = vsc_setup() klass = _fvs('vsc_bdist_rpm egg_info') # test to see if we don't fail on unknown/new cmdclasses orig_target = klass.SHARED_TARGET klass.SHARED_TARGET['cmdclass']['easy_install'] = object new_target = setup.parse_target(package) self.assertEquals(new_target['name'], 'vsc-test') klass.SHARED_TARGET = orig_target
def test_parse_target(self): """Test for parse target""" package = { 'name': 'vsc-test', 'excluded_pkgs_rpm': [], 'version': '1.0', } setup = vsc_setup() klass = _fvs('vsc_bdist_rpm egg_info') # test to see if we don't fail on unknown/new cmdclasses orig_target = klass.SHARED_TARGET klass.SHARED_TARGET['cmdclass']['easy_install'] = object new_target = setup.parse_target(package) self.assertEqual(new_target['name'], 'vsc-test') self.assertEqual(new_target['version'], '1.0') self.assertEqual(new_target['long_description_content_type'], 'text/markdown') self.assertTrue(new_target['long_description'].startswith("Description\n===========")) klass.SHARED_TARGET = orig_target