def test_uri_to_stub(self): uri_string = uri.generate_stub(123, 'This is the list title') self.assertEqual(uri_string, '123-this-is-the-list-title')
def test_no_title(self): uri_string = uri.generate_stub(123) self.assertEqual(uri_string, '123')