Beispiel #1
0
 def test_create_with_name_starting_with_numeric(self):
     """Successfully create a group with name starting with numeric chars"""
     testgroup = GroupTracker(
         name=u'1234group',
         description=u'Group name starting with numeric chars',
     )
     testgroup.create()
     testgroup.delete()
Beispiel #2
0
 def test_create_with_name_starting_with_numeric(self):
     """Successfully create a group with name starting with numeric chars"""
     testgroup = GroupTracker(
         name=u'1234group',
         description=u'Group name starting with numeric chars',
     )
     testgroup.create()
     testgroup.delete()
Beispiel #3
0
 def test_create_with_numeric_only_group_name(self):
     """Try to create a group with name only contains numeric chars"""
     testgroup = GroupTracker(
         name=u'1234', description=u'Numeric only group name',
     )
     with raises_exact(errors.ValidationError(
         name='group_name',
         error=u'may only include letters, numbers, _, -, . and $',
     )):
         testgroup.create()
Beispiel #4
0
 def test_create_with_numeric_only_group_name(self):
     """Try to create a group with name only contains numeric chars"""
     testgroup = GroupTracker(
         name=u'1234', description=u'Numeric only group name',
     )
     with raises_exact(errors.ValidationError(
         name='group_name',
         error=u'may only include letters, numbers, _, -, . and $',
     )):
         testgroup.create()