def test_source_file(self): """ Test the SourceFile class """ source = Source() # set the work dir source.set_work_dir(TEST_WORK_DIR) # download the upstream source file source.get_source(TEST_SRC) # check that source exists and source.filename point to the right location self.assertEqual(source.filename, self.source_file) self.assertTrue(os.path.exists(self.source_file)) self.assertEqual(source.check_source_md5(), "289cb714af3a85fe36a51fa3612b57ad")