<commit_before>__author__ = 'callum'


def _read_approved():
	return open('my_test.approved').read()


def approved(thing):
	return thing == _read_approved()


def test_actual_is_as_approved():
	assert approved('banana')


def test_actual_is_not_as_approved():
	assert not approved('kumquat')


def name_of_test():
	pass


def test_can_get_test_name():
	assert name_of_test() == 'test_can_get_test_name()'<commit_msg>test_can_get_test_name passes<commit_after>__author__ = 'callum'
import inspect


def _read_approved():
	return open('my_test.approved').read()


def approved(thing):
	return thing == _read_approved()


def test_actual_is_as_approved():
	assert approved('banana')


def test_actual_is_not_as_approved():
	assert not approved('kumquat')


def name_of_test():
	"""
	Now redundant as temp must be assigned within the current function
	"""
	temp = globals()[inspect.getframeinfo(inspect.currentframe()).function]
	return temp.__name__


def test_can_get_test_name():
	"""
	See http://docs.python.org/3.3/library/inspect.html
	  and http://stackoverflow.com/questions/5063607/is-there-a-self-flag-can-reference-python-function-inside-itself
	"""
	temp = globals()[inspect.getframeinfo(inspect.currentframe()).function]
	assert temp.__name__ == 'test_can_get_test_name'
{'fraction_non_alphanumeric': 0.12890625, 'fraction_numerical': 0.00703125, 'mean_word_length': 6.362068965517241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '149224', 'n_tokens_mistral': 469, 'n_tokens_neox': 437, 'n_words': 78}