def test_get_uuid(self):
     """Test uuid getter."""
     auth_id = '1'
     accessor = ProviderAuthDBAccessor(auth_id)
     self.assertEqual('7e4ec31b-7ced-4a17-9f7e-f77e9efa8fd6',
                      accessor.get_uuid())
     accessor.close_session()
 def test_get_uuid(self):
     """Test uuid getter."""
     auth_id = self.aws_db_auth.id
     accessor = ProviderAuthDBAccessor(auth_id)
     self.assertEqual(self.aws_provider.authentication.uuid,
                      accessor.get_uuid())
示例#3
0
 def test_get_uuid(self):
     """Test uuid getter."""
     auth_id = self.aws_db_auth_id
     accessor = ProviderAuthDBAccessor(auth_id)
     self.assertEqual(uuid.UUID(self.aws_auth_provider_uuid),
                      accessor.get_uuid())