Beispiel #1
0
    def test_while_check_for_do(self, m_print_error):
        run = bashate.BashateRun()
        test_line = 'while `do something args`'
        bashate.check_for_do(test_line, run)

        m_print_error.assert_called_once_with(
            'E010: Do not on same line as while', test_line)
Beispiel #2
0
    def test_while_check_for_do(self, m_print_error):
        run = bashate.BashateRun()
        test_line = 'while `do something args`'
        bashate.check_for_do(test_line, run)

        m_print_error.assert_called_once_with(
            'E010: Do not on same line as while', test_line)
Beispiel #3
0
    def test_while_check_for_do(self, m_print_error):
        test_line = 'while `do something args`'
        bashate.check_for_do(test_line, self.run)

        m_print_error.assert_called_once_with(
            MESSAGES['E010'].msg % 'while', test_line)
    def test_while_check_for_do(self, m_print_error):
        test_line = 'while `do something args`'
        bashate.check_for_do(test_line, self.run)

        m_print_error.assert_called_once_with(
            MESSAGES['E010'].msg % 'while', test_line)
Beispiel #5
0
    def test_while_check_for_do(self, m_print_error):
        test_line = 'while `do something args`'
        bashate.check_for_do(test_line, self.run)

        m_print_error.assert_called_once_with(messages.E010 % 'while',
                                              test_line)