Beispiel #1
0
 def testLoadProject(self):
     self.project = Project(self.project_file)
     self.assert_(self.project.name, 'Project name null')
     self.assert_(self.project.author, 'Project author null')
     self.assert_(self.project.version, 'Project version null')
     self.assert_(self.project.distro, 'Project distro null')
     self.assert_(self.project.distro_version,
                  'Project distro_version null')
     self.assert_(self.project.arch, 'Project arch null')
     self.assert_(self.project.src_iso, 'Project src_iso null')
     self.assert_(self.project.output_file, 'Project output_file null')
     self.project.cleanup()
Beispiel #2
0
class TestConfig(unittest.TestCase):
    def setUp(self):
        self.project_file = os.path.join(os.path.join(os.getcwd(), 'test'), 'test_project.rpj')
        self.project = None

    def testLoadProject(self):
        self.project = Project(self.project_file)
        self.assert_(self.project.name, 'Project name null')
        self.assert_(self.project.author, 'Project author null')
        self.assert_(self.project.version, 'Project version null')
        self.assert_(self.project.distro, 'Project distro null')
        self.assert_(self.project.distro_version, 'Project distro_version null')
        self.assert_(self.project.arch, 'Project arch null')
        self.assert_(self.project.src_iso, 'Project src_iso null')
        self.assert_(self.project.output_file, 'Project output_file null')
        self.project.cleanup()
    
    def tearDown(self):
        pass
Beispiel #3
0
 def testLoadProject(self):
     self.project = Project(self.project_file)
     self.assert_(self.project.name, 'Project name null')
     self.assert_(self.project.author, 'Project author null')
     self.assert_(self.project.version, 'Project version null')
     self.assert_(self.project.distro, 'Project distro null')
     self.assert_(self.project.distro_version, 'Project distro_version null')
     self.assert_(self.project.arch, 'Project arch null')
     self.assert_(self.project.src_iso, 'Project src_iso null')
     self.assert_(self.project.output_file, 'Project output_file null')
     self.project.cleanup()
Beispiel #4
0
 def testAddProjectData(self):
     p = Project(
         os.path.join(os.path.join(os.getcwd(), 'test'),
                      'test_project.rpj'))
     self.engine.set_project(p)
     self.assertTrue(self.engine.add_project_data())
     self.assertTrue(
         os.path.exists(
             os.path.join(
                 os.path.join(self.engine.get_live_fs_dir(), 'opt'),
                 'testfile')))
Beispiel #5
0
class TestConfig(unittest.TestCase):
    def setUp(self):
        self.project_file = os.path.join(os.path.join(os.getcwd(), 'test'),
                                         'test_project.rpj')
        self.project = None

    def testLoadProject(self):
        self.project = Project(self.project_file)
        self.assert_(self.project.name, 'Project name null')
        self.assert_(self.project.author, 'Project author null')
        self.assert_(self.project.version, 'Project version null')
        self.assert_(self.project.distro, 'Project distro null')
        self.assert_(self.project.distro_version,
                     'Project distro_version null')
        self.assert_(self.project.arch, 'Project arch null')
        self.assert_(self.project.src_iso, 'Project src_iso null')
        self.assert_(self.project.output_file, 'Project output_file null')
        self.project.cleanup()

    def tearDown(self):
        pass