def test_go_right_certificate_auth(self):

        self.netki = Netki.certificate_api_access(
            user_key='uk',
            partner_id='partner_id',
            api_url='api_url'
        )

        self.assertFalse(hasattr(self.netki, 'key_signing_key'))
        self.assertFalse(hasattr(self.netki, 'signed_user_key'))
        self.assertEqual('uk', self.netki.user_key)
        self.assertEqual('partner_id', self.netki.partner_id)
        self.assertIsNone(self.netki.api_key)
        self.assertEqual('api_url', self.netki.api_url)
        self.assertEqual('certificate', self.netki._auth_type)
    def setUp(self):
        self.patcher1 = patch('NetkiClient.process_request')
        self.mockProcessRequest = self.patcher1.start()

        self.netki = Netki.certificate_api_access('uk', 'partner_id', 'uri')
    def setUp(self):
        self.patcher1 = patch('NetkiClient.Certificate')
        self.mockCertificateObject = self.patcher1.start()

        self.netki = Netki.certificate_api_access('uk', 'partner_id', 'uri')
 def setUp(self):
     self.netki = Netki.certificate_api_access('uk', 'partner_id', 'uri')