#!/usr/bin/env python
""" Simple AFP mock to allow testing the afp-cli. """

from bottle import route
from textwrap import dedent
from bottledaemon import daemon_run

@route('/account')
def account():
    return """{"test_account": ["test_role"]}"""


@route('/account/<account>/<role>')
def credentials(account, role):
    return dedent("""
                  {"Code": "Success",
                   "LastUpdated": "1970-01-01T00:00:00Z",
                   "AccessKeyId": "XXXXXXXXXXXX",
                   "SecretAccessKey": "XXXXXXXXXXXX",
                   "Token": "XXXXXXXXXXXX",
                   "Expiration": "2032-01-01T00:00:00Z",
                   "Type": "AWS-HMAC"}""").strip()

daemon_run(host='localhost', port=5555)

#!/usr/bin/env python
from bottle import route
from textwrap import dedent
from bottledaemon import daemon_run

""" Simple AFP mock to allow testing the afp-cli. """

@route('/account')
def account():
    return """{"test_account": ["test_role"]}"""


@route('/account/<account>/<role>')
def credentials(account, role):
    return dedent("""
                  {"Code": "Success",
                   "LastUpdated": "1970-01-01T00:00:00Z",
                   "AccessKeyId": "XXXXXXXXXXXX",
                   "SecretAccessKey": "XXXXXXXXXXXX",
                   "Token": "XXXXXXXXXXXX",
                   "Expiration": "2032-01-01T00:00:00Z",
                   "Type": "AWS-HMAC"}""").strip()

daemon_run(host='localhost', port=5555)

--- 
+++ 
@@ -1,9 +1,9 @@
 #!/usr/bin/env python
+""" Simple AFP mock to allow testing the afp-cli. """
+
 from bottle import route
 from textwrap import dedent
 from bottledaemon import daemon_run
-
-""" Simple AFP mock to allow testing the afp-cli. """
 
 @route('/account')
 def account():
Move string above the imports so it becomes a docstring
