Skip to content

Instantly share code, notes, and snippets.

@garrettr
Created February 24, 2015 02:19
Show Gist options
  • Save garrettr/28f00ae6a2f45d44692a to your computer and use it in GitHub Desktop.
Save garrettr/28f00ae6a2f45d44692a to your computer and use it in GitHub Desktop.
Travis test failure in test_regenerate_valid_lengths
=================================== FAILURES ===================================
___________________ TestSource.test_regenerate_valid_lengths ___________________
self = <tests.test_unit_source.TestSource testMethod=test_regenerate_valid_lengths>
def test_regenerate_valid_lengths(self):
"""Make sure we can regenerate all valid length codenames"""
for codename_len in xrange(7, 11):
response = self.client.post('/generate', data={
'number-words': str(codename_len),
})
self.assertEqual(response.status_code, 200)
codename = self._find_codename(response.data)
> self.assertEquals(len(codename.split()), codename_len)
E AssertionError: 8 != 9
tests/test_unit_source.py:69: AssertionError
===================== 1 failed, 43 passed in 15.42 seconds =====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment