Fixes AVD unit tests

This commit is contained in:
Raphael Baron 2019-07-20 12:35:44 +00:00
parent d881cb2e06
commit d1126b58c2

View file

@ -18,7 +18,7 @@ class TestAvd(TestCase):
def test_nexus_avd_as_default(self, mocked_suprocess, mocked_open): def test_nexus_avd_as_default(self, mocked_suprocess, mocked_open):
self.assertFalse(mocked_suprocess.called) self.assertFalse(mocked_suprocess.called)
self.assertFalse(mocked_open.called) self.assertFalse(mocked_open.called)
app.prepare_avd('Nexus 5', self.avd_name) app.prepare_avd('Nexus 5', self.avd_name, '550m')
self.assertTrue(mocked_suprocess.called) self.assertTrue(mocked_suprocess.called)
self.assertTrue(mocked_open.called) self.assertTrue(mocked_open.called)
@ -28,7 +28,7 @@ class TestAvd(TestCase):
self.assertFalse(mocked_sys_link.called) self.assertFalse(mocked_sys_link.called)
self.assertFalse(mocked_suprocess.called) self.assertFalse(mocked_suprocess.called)
self.assertFalse(mocked_open.called) self.assertFalse(mocked_open.called)
app.prepare_avd('Samsung Galaxy S6', self.avd_name) app.prepare_avd('Samsung Galaxy S6', self.avd_name, '550m')
self.assertTrue(mocked_sys_link.called) self.assertTrue(mocked_sys_link.called)
self.assertTrue(mocked_suprocess.called) self.assertTrue(mocked_suprocess.called)
self.assertTrue(mocked_open.called) self.assertTrue(mocked_open.called)