コード例 #1
0
ファイル: test_bashate.py プロジェクト: teselkin/bashate
    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)
コード例 #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)
コード例 #3
0
ファイル: test_bashate.py プロジェクト: openstack/bashate
    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)
コード例 #4
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)
コード例 #5
0
ファイル: test_bashate.py プロジェクト: aspiers/bashate
    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)