def test_server_data(self): server_data = rollbar._build_server_data() self.assertIn('host', server_data) self.assertIn('argv', server_data) self.assertNotIn('branch', server_data) self.assertNotIn('root', server_data) rollbar.SETTINGS['branch'] = 'master' rollbar.SETTINGS['root'] = '/home/test/' server_data = rollbar._build_server_data() self.assertIn('host', server_data) self.assertIn('argv', server_data) self.assertEqual(server_data['branch'], 'master') self.assertEqual(server_data['root'], '/home/test/')
def test_server_data(self): server_data = rollbar._build_server_data() self.assertIn("host", server_data) self.assertIn("argv", server_data) self.assertNotIn("branch", server_data) self.assertNotIn("root", server_data) rollbar.SETTINGS["branch"] = "master" rollbar.SETTINGS["root"] = "/home/test/" server_data = rollbar._build_server_data() self.assertIn("host", server_data) self.assertIn("argv", server_data) self.assertEqual(server_data["branch"], "master") self.assertEqual(server_data["root"], "/home/test/")