Beispiel #1
0
 def test_doesnt_mutate_extra_info(self):
     browser = Browser('Windows', '7', "IE", '8.0')
     other_info = {'foo': 'bar'}
     self.assertEqual(
         {'os': 'Windows', 'os_version': '7',
          'browser': 'IE', 'browser_version': '8.0', 'foo': 'bar'},
         browser.as_browserstack_capabilities(other_info))
     self.assertEqual(1, len(other_info.keys()))
Beispiel #2
0
 def test_as_browserstack_capabilities_with_extra_info(self):
     browser = Browser('Windows', '7', "IE", '8.0')
     self.assertEqual(
         {'os': 'Windows', 'os_version': '7',
          'browser': 'IE', 'browser_version': '8.0'},
         browser.as_browserstack_capabilities())