コード例 #1
0
 def test_import_fail_second(self):
     ret = import_dscs.main(['argv0',
                             '--failfile=file1',
                             '--failfile=file2',
                             'file1.dsc',
                             'file2.dsc'])
     self.assertEqual(ret, 1)
コード例 #2
0
 def test_import_fail_second(self):
     ret = import_dscs.main(['argv0',
                             '--failfile=file1',
                             '--failfile=file2',
                             'file1.dsc',
                             'file2.dsc'])
     self.assertEqual(ret, 1)
コード例 #3
0
 def test_import_success(self):
     """Test importing success with stub"""
     ret = import_dscs.main(['argv0', 'file1.dsc', 'file2.dsc'])
     self.assertEqual(ret, 0)
コード例 #4
0
 def test_import_success(self):
     """Test importing success with stub"""
     ret = import_dscs.main(['argv0', 'file1.dsc', 'file2.dsc'])
     self.assertEqual(ret, 0)