def test_pluck_configuration_uses_defaults(self): self.assertEqual(jarsigner._pluck_configuration(self.minimal_context), ('jarsigner', '/path/to/keystore', { 'aurora': 'nightly', 'beta': 'nightly', 'release': 'release', 'dep': 'dep', }, 'aurora'))
def test_pluck_configuration_sets_every_argument(self): self.assertEqual(jarsigner._pluck_configuration(self.context), ('/path/to/jarsigner', '/path/to/keystore', { 'aurora': 'aurora_alias', 'beta': 'beta_alias', 'release': 'release_alias', 'dep': 'dep_alias', }, 'aurora'))
def test_pluck_configuration_uses_defaults(self): self.assertEqual( jarsigner._pluck_configuration(self.minimal_context, {'certificate_alias': 'nightly'}), ( 'jarsigner', '/path/to/keystore', 'nightly', ))
def test_pluck_configuration_sets_every_argument(self): self.assertEqual( jarsigner._pluck_configuration( self.context, {'certificate_alias': 'aurora_alias'}), ( '/path/to/jarsigner', '/path/to/keystore', 'aurora_alias', ))
def test_pluck_configuration_uses_defaults(self): self.assertEqual(jarsigner._pluck_configuration(self.minimal_context, {"certificate_alias": "nightly"}), ("jarsigner", "/path/to/keystore", "nightly"))
def test_pluck_configuration_sets_every_argument(self): self.assertEqual( jarsigner._pluck_configuration(self.context, {"certificate_alias": "aurora_alias"}), ("/path/to/jarsigner", "/path/to/keystore", "aurora_alias") )