Skip to content

Instantly share code, notes, and snippets.

@iivvoo
Created August 14, 2012 13:13
Show Gist options
  • Save iivvoo/3349141 to your computer and use it in GitHub Desktop.
Save iivvoo/3349141 to your computer and use it in GitHub Desktop.
opposite axes
def test_opposites(self):
""" "scores" may contain values for opposite attribute values -
make sure the winner wins """
scores = {'Realistic': [8],
'Investigative': [7],
'Artistic': [6],
'Social': [2],
'Enterprising': [1],
'Conventional': [3]}
coords = get_coords(dict(all=scores))
assert 'all' in coords
assert coords['all'].x == 8
assert coords['all'].y == 7
assert coords['all'].z == 6
test_riasec_coords.py:201: in test_opposites
> assert coords['all'].x == 8
E assert -2 == 8
E + where -2 = Coord: -2 -1 6.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment