コード例 #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!")
コード例 #2
0
def test_hello_world():
    assert hello_world() == "hello world"
コード例 #3
0
ファイル: test_app.py プロジェクト: dangayle/Email-Relay
 def test_hello_world(self):
     hello = hello_world()
     self.assertEqual(hello, ("Hello world!", 200))
コード例 #4
0
def test_hello_world():
    assert 'Hello, Flask!' == hello_world()
コード例 #5
0
 def test_hello_world(self):
     import app
     self.assertEqual(app.hello_world(), "Hello, World!")
コード例 #6
0
ファイル: cmd.py プロジェクト: buddiex/cdretl
def hello(name, surname):
    app.hello_world()
    print "hello", name, surname
コード例 #7
0
def test_hello_world():
    assert app.hello_world() == 'Hello (virtual) World! =)'
コード例 #8
0
 def test_hello(self):
     target = os.environ.get('COMPANY', 'Leonteq')
     self.assertEqual(hello_world(),
                      "Hello {0} from Gustavo Benitez\n".format(target))
コード例 #9
0
ファイル: app_unittest.py プロジェクト: erezcarmel/PythonApp
 def test_hello_world(self):
     print('hello_world')
     self.assertEqual(hello_world(), 'Hello world!')
コード例 #10
0
ファイル: test_app.py プロジェクト: MattPotticary/AWS-test
def test_hello_world():
    '''Test for hello world function'''
    assert app.hello_world(), 'Hello, World!'
コード例 #11
0
 def test_hello_world(self):
     result = hello_world()
     self.assertDictEqual({'message': 'Hello World'}, result)
コード例 #12
0
ファイル: test.py プロジェクト: ramramu3433/Testflask
    def test_get(self):

        test = app.hello_world()
        self.assertEquals(test, "Hello, World!")
コード例 #13
0
 def test_hello_world(self):
     import app
     self.assertEqual(app.hello_world(),
                      "Hello, World please by mine forever!")
コード例 #14
0
ファイル: app__test.py プロジェクト: little-lily-17/todolist
def test_hello_world():
    assert hello_world() == 'Welcome, this is my todo list!'
コード例 #15
0
ファイル: test_app.py プロジェクト: pboisver/bananapy
 def test_hello_world(self):
     self.assertEqual('Hello World!', hello_world())
コード例 #16
0
ファイル: test_app.py プロジェクト: sanster23/makefiles
def test_hello_world():
    assert app.hello_world() == '<H2> HELLO WORLD </H2>'
コード例 #17
0
ファイル: test.py プロジェクト: echeniquegrecia/Testing2
def test_hello_world():
    total = app.hello_world()
    assert total == 'updating again 22'
コード例 #18
0
from app import hello_world


if __name__ == '__main__':
    print(hello_world('Workflow'))
コード例 #19
0
def test_hello_world():
    assert hello_world("Name") == "Hello Name"
コード例 #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!')
コード例 #21
0
def main():
    app.hello_world()
コード例 #22
0
ファイル: cmd.py プロジェクト: buddiex/cdretl
def run(in_date,stream_name):
    app.hello_world(in_date,stream_name)
    ref_date = datetime.strptime(in_date, '%Y%m%d')
コード例 #23
0
def my_app():
    my_app = app.hello_world()
    return my_app == "Hello World!"
コード例 #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()
コード例 #25
0
def test_dummy():
    assert app.hello_world() == "Hello World!"