def parse_test_cases(parser, test_file):
	"""
	Parse source file and extracts test cases
	"""
	parsed_classes = parser.parse_file(test_file)

	test_cases = list()

	for parsed_class in parsed_classes:
		for method in parsed_class['methods']:
			if method['testcase']:

				#Test Class Info
				test_case_class = dict(parsed_class)
				test_case_class.pop('methods')
				test_case_class.pop('argument_list')
				test_case_class['file'] = test_file
				method['class'] = test_case_class

				test_cases.append(method)
	
	return test_cases