Exemplo n.º 1
0
    def test_prepare_9(self):
        """tear down test.
        """
        options = TestOptions()
        options.test_7()

        console = Console()
        console._parser = mock.Mock()
        console._parser.parse_args = mock.Mock()
        console._parser.parse_args.return_value = (options, None)

        check = console.prepare()

        self.assertFalse(check)
        return
Exemplo n.º 2
0
    def test_run_2(self):
        """tear down test.
        """
        options = TestOptions()
        options.test_6()

        console = Console()
        console._parser = mock.Mock()
        console._parser.parse_args = mock.Mock()
        console._parser.parse_args.return_value = (options, None)

        check1 = console.prepare()
        check2 = console.run()

        self.assertTrue(check1)
        self.assertTrue(check2)
        return