Permalink
Browse files

Removed class files.

  • Loading branch information...
1 parent 2548c68 commit caf5ff7090ec40603b83fdaa5558f3ca4ac95920 @dtmilano committed Feb 4, 2012
View
@@ -1,2 +1,7 @@
+# Compiled classes #
+####################
+*$py.class
+# Mac files #
+#############
.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,14 +4,15 @@
@author: diego
'''
+import unittest
import subprocess
import re
import socket
import os
DEBUG = False
-ANDROID_HOME = os.environ['ANDROID_HOME'] if os.environ.has_key('ANDROID_HOME') else '/opt/android-sdk'
+ANDROID_HOME = os.environ['ANDROID_HOME'] if os.environ.has_key('ANDROID_HOME') else '/Users/diego/opt/android-sdk'
VIEW_SERVER_HOST = 'localhost'
VIEW_SERVER_PORT = 4939
@@ -24,8 +25,6 @@ class ViewClient:
'''
def __init__(self, device):
- if not device:
- raise Exception('Device is not connected')
if not self.serviceResponse(device.shell('service call window 3')):
self.assertServiceResponse(device.shell('service call window 1 i32 %d' %
VIEW_SERVER_PORT))
@@ -36,8 +35,7 @@ def __init__(self, device):
self.viewsById = {}
def assertServiceResponse(self, response):
- if not self.serviceResponse(response):
- raise Exception('Invalid response received from service.')
+ unittest.assertTrue(self.serviceResponse(response))
def serviceResponse(self, response):
return response == "Result: Parcel(00000000 00000001 '........')\r\n"

0 comments on commit caf5ff7

Please sign in to comment.