diff options
Diffstat (limited to 'tests/test_uritemplate.py')
-rw-r--r-- | tests/test_uritemplate.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_uritemplate.py b/tests/test_uritemplate.py index 26aeb72..b1abc96 100644 --- a/tests/test_uritemplate.py +++ b/tests/test_uritemplate.py @@ -1,5 +1,5 @@ from unittest import TestCase, main -from uritemplate import URITemplate, expand, partial +from uritemplate import URITemplate, expand, partial, variables from uritemplate import variable @@ -580,6 +580,10 @@ class TestAPI(TestCase): URITemplate('https://api.github.com/users/sigmavirus24{/other}') ) + def test_variables(self): + self.assertEqual(variables(self.uri), + URITemplate(self.uri).variable_names) + if __name__ == '__main__': main() |