Krzysztof Szukiełojć | 15b62b7 | 2017-02-15 08:58:18 +0100 | [diff] [blame] | 1 | # 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 | |
| 6 | from __future__ import ( |
| 7 | absolute_import, |
| 8 | print_function, |
| 9 | unicode_literals, |
| 10 | ) |
| 11 | |
| 12 | str = None |
| 13 | |
| 14 | __metaclass__ = type |
| 15 | __all__ = [ |
| 16 | 'make_api_credentials', |
| 17 | ] |
| 18 | |
| 19 | from maastesting.factory import factory |
| 20 | |
| 21 | |
| 22 | def 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 | ) |