Skip to content

Commit

Permalink
test convert name to slug
Browse files Browse the repository at this point in the history
  • Loading branch information
aniversarioperu committed Oct 31, 2014
1 parent 45313c9 commit 473b2a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proyectos_de_ley/seguimientos/tests/test_utils.py
Expand Up @@ -61,6 +61,11 @@ def test_prepare_json_for_d3(self):
result = utils.prepare_json_for_d3(item)
self.assertEqual(expected, result)

def test_convert_name_to_slug(self):
congresista = "Gamarra Saldivar, Teofilo"
expected = "gamarra_saldivar_teofilo/"
result = utils.convert_name_to_slug(congresista)
self.assertEqual(expected, result)

def test_convert_date_to_string(self):
fecha = datetime.datetime(2010, 10, 10)
Expand Down

0 comments on commit 473b2a0

Please sign in to comment.