def test_useragreeing_answeris_n_expectfalseandexception(self, inputmock): handler = ImportHandler(self.configBuilder.build()) try: handler.is_user_agreeing_to_accept_next_change( self.createChangeEntry()) self.fail("Should have exit the program") except SystemExit as e: self.assertEqual( "Please check the output/log and rerun program with resume", e.code)
def test_useragreeing_answeris_y_expecttrue(self, inputmock): handler = ImportHandler(self.configBuilder.build()) self.assertTrue( handler.is_user_agreeing_to_accept_next_change( self.createChangeEntry()))