Exemplo n.º 1
0
 def test_split_uuid_fifth_piece_too_short(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-aaf7-4c2e-929e-1e2a0ab59e1')
Exemplo n.º 2
0
 def test_split_uuid_too_few_pieces(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-4c2e-929e-1e2a0ab59e16')
Exemplo n.º 3
0
 def test_split_uuid_fourth_piece_too_long(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-aaf7-4c2e-929ea-1e2a0ab59e16')
Exemplo n.º 4
0
 def test_split_uuid_valid(self):
     self.assertEqual(split_uuid('7575a428-aaf7-4c2e-929e-1e2a0ab59e16'),
                      ('7575a428aaf7', '4c2e929e', '1e2a0ab59e16'))
Exemplo n.º 5
0
 def test_split_uuid_fifth_piece_too_short(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-aaf7-4c2e-929e-1e2a0ab59e1')
Exemplo n.º 6
0
 def test_split_uuid_fourth_piece_too_long(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-aaf7-4c2e-929ea-1e2a0ab59e16')
Exemplo n.º 7
0
 def test_split_uuid_too_few_pieces(self):
     with self.assertRaises(ValueError):
         split_uuid('7575a428-4c2e-929e-1e2a0ab59e16')
Exemplo n.º 8
0
 def test_split_uuid_valid(self):
     self.assertEqual(
         split_uuid('7575a428-aaf7-4c2e-929e-1e2a0ab59e16'),
         ('7575a428aaf7', '4c2e929e', '1e2a0ab59e16')
     )