blob: b51beb203a89c70b43b763becadd06e7498224d0 [file] [log] [blame]
Krzysztof Szukiełojć15b62b72017-02-15 08:58:18 +01001# Copyright 2012 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).
3
4"""Testing facilities for API credentials."""
5
6from __future__ import (
7 absolute_import,
8 print_function,
9 unicode_literals,
10 )
11
12str = None
13
14__metaclass__ = type
15__all__ = [
16 'make_api_credentials',
17 ]
18
19from maastesting.factory import factory
20
21
22def make_api_credentials():
23 """Create a tuple of fake API credentials."""
24 return (
25 factory.make_name('consumer-key'),
26 factory.make_name('resource-token'),
27 factory.make_name('resource-secret'),
28 )