def setUp(self): self.f**k = F**k()
#!/usr/bin/env python3 import sys import re import logging import logging.config import random from random import choice as randchoice from slackbot import settings from slackbot.bot import Bot from slackbot.bot import respond_to from slackbot.bot import listen_to from foaas import F**k f**k = F**k(secure=True) MAN = ['Evan', 'Matt'] BEAST = ['Shardik', 'Linus'] BOTH = MAN + BEAST name = random.choice(BOTH) from_ = random.choice(BOTH) def choose_random(): return randchoice(BOTH) @listen_to('^f**k off$', re.IGNORECASE) def fuck_off(message): """You don't get to tell me to f**k off!"""
def test_url_secure(self): secure_fuck = F**k(secure=True) url = secure_fuck.everything(from_='Bob', secure=True).url self.assertEqual('https://foaas.herokuapp.com/everything/Bob', url)
Sub-project: Labs File Name: fuckstrings.py Author: Dustin McClure Lab: Lab 3a - Using Strings Modified Date: 10/10/2020 A program that formats and prints responses from the foaas api (F**k off as a Service); an api that allows you to very efficiently tell someone or something to 'f**k off'. """ # import the F**k class from the foaas module from foaas import F**k # create a new instance of the class F**k f**k = F**k() # set variables for the current lab and number of f**k operations lab_three = 3 fuck_amount = 4 # print a f*****g explanation of what this program accomplishes # using string modulo operators %d (digit), %s (string), and # %f (floating point) to embed values print('''Today, for lab %da, we will be exploring precisely %.1f of the many satisfying ways one can use %s off as a service to simplify the action of telling someone to %s off. \n ''' % (lab_three, fuck_amount, 'f**k', 'f**k')) print( "=====================================================================\n")