def test_import_fail_second(self): ret = import_dscs.main(['argv0', '--failfile=file1', '--failfile=file2', 'file1.dsc', 'file2.dsc']) self.assertEqual(ret, 1)
def test_import_success(self): """Test importing success with stub""" ret = import_dscs.main(['argv0', 'file1.dsc', 'file2.dsc']) self.assertEqual(ret, 0)