first attempt to write tests for nose
first attempt to write tests for nose
Merge branch 'feature-testing' of github.com:chendaniely/multi-agent-neural-network into feature-testing
first attempt to write tests for nose
Merge branch 'feature-testing' of github.com:chendaniely/multi-agent-neural-network into feature-testing
ignore the temp folder
changed imports to import entire module
comment out old unittest tests (these were mostly toy examples)
added unit test for agent.Agent.get_key()
Toy example of testing interface/implementation, added notes for fixtures
__eq__ compares the get_key(), not the __key() -- __key()  should've been _key()
created Exception for BaseAgentStateError, and have the init print the error message
clarified that the function parameter takes in a list by changing the variable name
fixed and clarified the set_predecessors() method documentation
assert in set_binary_state checks against a list, instead of tuple (was getting always true message)
pep8
removed print to stderr calls
reset_agent_count() renamed to reset_agent()
split the get_key() test into 2 seprarate tests: single agent creation, and multiple agent creation
test base agent get_state() -- this is why I had to implement the user-defined Exception, BaseAgentStateError