'pastebin : (\'failed\', \'all\', None), optional
Convenience option for turning on py.test pastebin output. Set to
\'failed\' to upload info for failed tests, or \'all\' to upload info
for all tests.'

@keyword()
def pastebin(self, pastebin, kwargs):

    if (pastebin is not None):
        if (pastebin in [u'failed', u'all']):
            return [u'--pastebin={0}'.format(pastebin)]
        else:
            raise ValueError(u"pastebin    should    be    'failed'    or    'all'")
    return []
