Skip to content

Commit e68de95

Browse files
committed
updating send_lococation_data test
1 parent 42df192 commit e68de95

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_client.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestClient(base.IOTestCase):
2323
# If your IP isn't put on the list of non-throttled IPs, uncomment the
2424
# function below to waste time between tests to prevent throttling.
2525
#def tearDown(self):
26-
# time.sleep(30.0)
26+
time.sleep(30.0)
2727

2828
# Helper Methods
2929
def get_client(self):
@@ -132,15 +132,14 @@ def test_create_data(self):
132132
def test_location_data(self):
133133
aio = self.get_client()
134134
self.ensure_feed_deleted(aio, 'testlocfeed')
135-
test_feed = aio.create_feed(Feed(name="testlocfeed"))
136-
aio.send_location_data(test_feed.key, 0, 40, -74, 6)
135+
test_feed = aio.create_feed(Feed(name='testlocfeed'))
136+
aio.send_location_data(test_feed.key, 40, -74, 6, 0)
137137
data = aio.receive(test_feed.key)
138-
self.assertEqual(int(data.value), 0)
138+
self.assertEqual(int(data.value), 0.0)
139139
self.assertEqual(float(data.lat), 40.0)
140140
self.assertEqual(float(data.lon), -74.0)
141141
self.assertEqual(float(data.ele), 6.0)
142142

143-
144143
# Test Feed Functionality
145144
def test_append_by_feed_name(self):
146145
io = self.get_client()

0 commit comments

Comments
 (0)