author Malini Das <mdas@mozilla.com>
Wed, 17 Oct 2012 16:49:49 -0400
changeset 110587 130f0da363c80d3e535e3188aa9c36c01f83cf4e
parent 110413 b9539b74e037c6d431eee5153f26f02aaf08509d
permissions -rw-r--r--
Bug 802753 - remove assertIn so test_getstatus is python 2.6 compatible, r=jgriffin

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from marionette_test import MarionetteTestCase

class TestGetStatus(MarionetteTestCase):
    def test_getStatus(self):
        status = self.marionette.status()
        self.assertTrue("os" in status)
        status_os = status['os']
        self.assertTrue("version" in status_os)
        self.assertTrue("name" in status_os)
        self.assertTrue("arch" in status_os)
        self.assertTrue("build" in status)
        status_build = status['build']
        self.assertTrue("revision" in status_build)
        self.assertTrue("time" in status_build)
        self.assertTrue("version" in status_build)