print(flush=True) if __name__ == '__main__': if len(sys.argv) != 3: print("Usage : python avc_analyser.py DEVICE_ID SCENARIO") exit(2) device = sys.argv[1] scenario_file = sys.argv[2] scenario = get_scenario(scenario_file) if scenario is None or check_scenario_keys(scenario) is False: print('Something goes wrong with scenario file') exit(2) bearer = get_bearer('bearer.txt') if bearer is None: print('Something goes wrong with bearer file') exit(2) log = get_log(device, bearer) if log is None: print('Something goes wrong with app to get log') exit(2) start_point = get_start(log) if start_point is None: print('Unable to get starting point in log') exit(2) config = get_config(device, bearer)
def test_get_bearer(self): bearer = get_bearer('../bearer.txt') self.assertIsNotNone(bearer)
def test_get_config(self): bearer = get_bearer('../bearer.txt') conf = get_config('2004E2', bearer) self.assertIsNotNone(conf)
def test_get_measure(self): bearer = get_bearer('../bearer.txt') mes = get_measure('2004E2', bearer) self.assertIsNotNone(mes)
def test_get_start(self): bearer = get_bearer('../bearer.txt') log = get_log('2004E2', bearer) self.assertIsNotNone(get_start(log))