def test_result_stream(self): test = Test(self.client) result_stream = test.result_stream() self.assertTrue(isinstance(result_stream, _TestResultStream)) self.assertEqual(result_stream.test, test) self.assertEqual(result_stream.result_ids, [ TestResult.result_id_from_name(TestResult.USER_LOAD_TIME, load_zone_id=LoadZone.name_to_id( LoadZone.AGGREGATE_WORLD)), TestResult.result_id_from_name(TestResult.ACTIVE_USERS, load_zone_id=LoadZone.name_to_id( LoadZone.AGGREGATE_WORLD)) ])
def test_result_stream(self): test = Test(self.client) result_stream = test.result_stream() self.assertTrue(isinstance( result_stream, _TestResultStream)) self.assertEqual(result_stream.test, test) self.assertEqual(result_stream.result_ids, [TestResult.result_id_from_name( TestResult.USER_LOAD_TIME, load_zone_id=LoadZone.name_to_id(LoadZone.AGGREGATE_WORLD)), TestResult.result_id_from_name( TestResult.ACTIVE_USERS, load_zone_id=LoadZone.name_to_id(LoadZone.AGGREGATE_WORLD))])
def test_result_id_from_name_with_name_load_zone_user_scenario(self): self.assertEqual(TestResult.result_id_from_name('__li_user_load_time', load_zone_id=1, user_scenario_id=1), '__li_user_load_time:1:1')
def test_result_id_from_name_with_name(self): self.assertEqual(TestResult.result_id_from_name('__li_user_load_time'), '__li_user_load_time')
def test_result_id_from_name_with_name_load_zone_user_scenario(self): self.assertEqual( TestResult.result_id_from_name('__li_user_load_time', load_zone_id=1, user_scenario_id=1), '__li_user_load_time:1:1')
def test_result_id_from_name_with_name(self): self.assertEqual(TestResult.result_id_from_name('__li_user_load_time'), '__li_user_load_time')