Example #1
0
    def test_asymmetric_algorithms(self):
        for algorithm in base.PluginSupportTypes.ASYMMETRIC_ALGORITHMS:
            self.assertEqual(
                base.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION,
                store_crypto._determine_generation_type(algorithm))

        # Case doesn't matter.
        self.assertEqual(base.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION,
                         store_crypto._determine_generation_type('RsA'))
Example #2
0
    def test_asymmetric_algorithms(self):
        for algorithm in crypto.PluginSupportTypes.ASYMMETRIC_ALGORITHMS:
            self.assertEqual(
                crypto.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION,
                store_crypto._determine_generation_type(algorithm))

        # Case doesn't matter.
        self.assertEqual(
            crypto.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION,
            store_crypto._determine_generation_type('RsA'))