Exemple #1
0
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!")
Exemple #2
0
def test_hello_world():
    assert hello_world() == "hello world"
Exemple #3
0
 def test_hello_world(self):
     hello = hello_world()
     self.assertEqual(hello, ("Hello world!", 200))
Exemple #4
0
def test_hello_world():
    assert 'Hello, Flask!' == hello_world()
 def test_hello_world(self):
     import app
     self.assertEqual(app.hello_world(), "Hello, World!")
Exemple #6
0
def hello(name, surname):
    app.hello_world()
    print "hello", name, surname
Exemple #7
0
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))
Exemple #9
0
 def test_hello_world(self):
     print('hello_world')
     self.assertEqual(hello_world(), 'Hello world!')
Exemple #10
0
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)
Exemple #12
0
    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!")
Exemple #14
0
def test_hello_world():
    assert hello_world() == 'Welcome, this is my todo list!'
Exemple #15
0
 def test_hello_world(self):
     self.assertEqual('Hello World!', hello_world())
Exemple #16
0
def test_hello_world():
    assert app.hello_world() == '<H2> HELLO WORLD </H2>'
Exemple #17
0
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"
Exemple #20
0
 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!')
Exemple #21
0
def main():
    app.hello_world()
Exemple #22
0
def run(in_date,stream_name):
    app.hello_world(in_date,stream_name)
    ref_date = datetime.strptime(in_date, '%Y%m%d')
Exemple #23
0
def my_app():
    my_app = app.hello_world()
    return my_app == "Hello World!"
Exemple #24
0
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()
Exemple #25
0
def test_dummy():
    assert app.hello_world() == "Hello World!"