def test_ls_calls_ios_helper_method(self, mock_ls_ios): device_state.device_type = Ios ls(['/foo/bar']) self.assertTrue(mock_ls_ios.called)
def test_ls_calls_android_helper_method(self, mock_ls_android): device_state.device_type = Android ls(['/foo/bar']) self.assertTrue(mock_ls_android.called)
def test_ls_gets_pwd_from_helper_with_no_argument(self, _, mock_pwd): device_state.device_type = Ios ls([]) self.assertTrue(mock_pwd.called)