@@ -41,17 +41,16 @@ def tearDownClass(cls):
41
41
def test_001_emulate_list_devices (self ):
42
42
output = run ("xcodebuild -version" )
43
43
if "6." in output :
44
- output = run (TNS_PATH + \
44
+ output = run (TNS_PATH +
45
45
" emulate ios --availableDevices --path TNS_App --justlaunch" )
46
46
assert "iPhone-6" in output
47
47
else :
48
- output = run (TNS_PATH + \
48
+ output = run (TNS_PATH +
49
49
" emulate ios --availableDevices --path TNS_App --justlaunch" )
50
50
assert "iPhone 6 81" in output
51
51
52
52
def test_002_emulate_ios (self ):
53
- output = run (
54
- TNS_PATH +
53
+ output = run (TNS_PATH +
55
54
" emulate ios --device 'iPhone 6 81' --path TNS_App --justlaunch" )
56
55
assert "Project successfully prepared" in output
57
56
assert "Project successfully built" in output
@@ -62,8 +61,7 @@ def test_002_emulate_ios(self):
62
61
assert Process .is_running ("Simulator" )
63
62
64
63
def test_003_emulate_ios_release (self ):
65
- output = run (
66
- TNS_PATH +
64
+ output = run (TNS_PATH +
67
65
" emulate ios --device 'iPhone 6 81' --path TNS_App --release --justlaunch" )
68
66
assert "Project successfully prepared" in output
69
67
assert "CONFIGURATION Release" in output
@@ -76,8 +74,7 @@ def test_003_emulate_ios_release(self):
76
74
77
75
def test_210_emulate_ios_patform_not_added (self ):
78
76
Tns .create_app (app_name = "TNS_AppNoPlatform" )
79
- output = run (
80
- TNS_PATH +
77
+ output = run (TNS_PATH +
81
78
" emulate ios --device 'iPhone 6 81' --path TNS_AppNoPlatform --justlaunch" )
82
79
assert "Copying template files..." in output
83
80
assert "Project successfully created." in output
@@ -90,9 +87,6 @@ def test_210_emulate_ios_patform_not_added(self):
90
87
assert Process .is_running ("Simulator" )
91
88
92
89
def test_400_emulate_invalid_device (self ):
93
- output = run (
94
- TNS_PATH +
90
+ output = run (TNS_PATH +
95
91
" emulate ios --device invalidDevice --path TNS_App --justlaunch" )
96
- assert "Project successfully prepared" in output
97
- assert "Project successfully built" in output
98
- assert "Unable to find device invalidDevice" in output
92
+ assert "Cannot find device with name: invalidDevice." in output
0 commit comments