more unit tests

This commit is contained in:
Miguel Grinberg
2019-04-27 16:34:19 +01:00
parent 0a373775d5
commit 76ab1fa6d7
7 changed files with 254 additions and 39 deletions

View File

@@ -78,7 +78,6 @@ class TestURLPattern(unittest.TestCase):
def test_regex_argument(self):
p = URLPattern('/users/<re:[a-c]+:id>')
print(p.pattern)
self.assertEqual(p.match('/users/ab'), {'id': 'ab'})
self.assertEqual(p.match('/users/bca'), {'id': 'bca'})
self.assertIsNone(p.match('/users/abcd'))