def test_hello_world(): assert app.hello_world() == "cho tam!!!!!!!!", "Test Failed!" try: assert app.hello_world() == "mar nayan!!!!!!!!", "Test Failed Forward!" except AssertionError: print("OK: Failed intentionally!")
def test_hello_world(): assert hello_world() == "hello world"
def test_hello_world(self): hello = hello_world() self.assertEqual(hello, ("Hello world!", 200))
def test_hello_world(): assert 'Hello, Flask!' == hello_world()
def test_hello_world(self): import app self.assertEqual(app.hello_world(), "Hello, World!")
def hello(name, surname): app.hello_world() print "hello", name, surname
def test_hello_world(): assert app.hello_world() == 'Hello (virtual) World! =)'
def test_hello(self): target = os.environ.get('COMPANY', 'Leonteq') self.assertEqual(hello_world(), "Hello {0} from Gustavo Benitez\n".format(target))
def test_hello_world(self): print('hello_world') self.assertEqual(hello_world(), 'Hello world!')
def test_hello_world(): '''Test for hello world function''' assert app.hello_world(), 'Hello, World!'
def test_hello_world(self): result = hello_world() self.assertDictEqual({'message': 'Hello World'}, result)
def test_get(self): test = app.hello_world() self.assertEquals(test, "Hello, World!")
def test_hello_world(self): import app self.assertEqual(app.hello_world(), "Hello, World please by mine forever!")
def test_hello_world(): assert hello_world() == 'Welcome, this is my todo list!'
def test_hello_world(self): self.assertEqual('Hello World!', hello_world())
def test_hello_world(): assert app.hello_world() == '<H2> HELLO WORLD </H2>'
def test_hello_world(): total = app.hello_world() assert total == 'updating again 22'
from app import hello_world if __name__ == '__main__': print(hello_world('Workflow'))
def test_hello_world(): assert hello_world("Name") == "Hello Name"
def test_hello_world(self): self.assertEqual(hello_world('some'), 'Hello, World!') self.assertEqual(hello_world(), 'Hello, bloody world!') self.assertEqual(hello_world('doom'), 'Hello, bloody world!')
def main(): app.hello_world()
def run(in_date,stream_name): app.hello_world(in_date,stream_name) ref_date = datetime.strptime(in_date, '%Y%m%d')
def my_app(): my_app = app.hello_world() return my_app == "Hello World!"
import app import googlemaps import math import requests gmaps_key = "AIzaSyAJ-WSc3L6hD7wxm43Rw3N5cSSCinXnJO4" gmaps = googlemaps.Client(key=gmaps_key) a = gmaps.geocode('패스파인더_부산대', language='ko') x = (a[0]['geometry']['location']['lat']) y = (a[0]['geometry']['location']['lng']) loc = [x, y] print(loc) url = 'https://chenkin-app.firebaseio.com/location.json' data = list(requests.get(url).json().values()) my_loc = [data[0]['latitude'], data[0]['longitude']] # 현재 위치 값 print(my_loc) lat = (loc[0] - my_loc[0]) * 88.8 lng = (loc[1] - my_loc[1]) * 111.18 dist = math.sqrt((lat * lat) + (lng * lng)) print(dist) if dist < 0.600: app.hello_world()
def test_dummy(): assert app.hello_world() == "Hello World!"