Пример #1
0
    def test_jdk_arch_for_unknown_system(self, get_arch):
        get_arch.return_value = 'unknown'

        try:
            _required_jdk_arch()
            self.fail('Expected Exception was not raised')
        except Exception:
            pass
Пример #2
0
    def test_jdk_arch_for_unknown_system(self, get_arch):
        get_arch.return_value = 'unknown'

        try:
            _required_jdk_arch()
            self.fail('Expected Exception was not raised')
        except Exception:
            pass
Пример #3
0
    def test_jdk_arch_for_x64_system(self, get_arch):

        from fabtools.oracle_jdk import _required_jdk_arch

        get_arch.return_value = 'x86_64'

        self.assertEqual('x64', _required_jdk_arch())
Пример #4
0
    def test_jdk_arch_for_x64_system(self, get_arch):

        from fabtools.oracle_jdk import _required_jdk_arch

        get_arch.return_value = 'x86_64'

        self.assertEqual('x64', _required_jdk_arch())
Пример #5
0
    def test_jdk_arch_for_32bit_system(self, get_arch):

        from fabtools.oracle_jdk import _required_jdk_arch

        for system_arch in ['i386', 'i486', 'i586', 'i686']:

            get_arch.return_value = system_arch

            self.assertEqual('i586', _required_jdk_arch())
Пример #6
0
    def test_jdk_arch_for_32bit_system(self, get_arch):

        from fabtools.oracle_jdk import _required_jdk_arch

        for system_arch in ['i386', 'i486', 'i586', 'i686']:

            get_arch.return_value = system_arch

            self.assertEqual('i586', _required_jdk_arch())
Пример #7
0
    def test_jdk_arch_for_x64_system(self, get_arch):
        get_arch.return_value = 'x86_64'

        self.assertEqual('x64', _required_jdk_arch())
Пример #8
0
    def test_jdk_arch_for_32bit_system(self, get_arch):
        for system_arch in ['i386', 'i486', 'i586', 'i686']:
            get_arch.return_value = system_arch

            self.assertEqual('i586', _required_jdk_arch())
Пример #9
0
    def test_jdk_arch_for_32bit_system(self, get_arch):
        for system_arch in ['i386', 'i486', 'i586', 'i686']:
            get_arch.return_value = system_arch

            self.assertEqual('i586', _required_jdk_arch())
Пример #10
0
    def test_jdk_arch_for_x64_system(self, get_arch):
        get_arch.return_value = 'x86_64'

        self.assertEqual('x64', _required_jdk_arch())