]> git.decadent.org.uk Git - dak.git/blob - tests/test_split_uploaders.py
queued: add buildd-all-keyring.gpg
[dak.git] / tests / test_split_uploaders.py
1 #!/usr/bin/env python
2
3 from base_test import DakTestCase
4
5 from daklib.textutils import split_uploaders
6
7 import unittest
8
9 class SplitUploadersTestCase(DakTestCase):
10     def test_main(self):
11         expected = ['"A, B" <a@b.c>', 'D E <d@e.f>']
12         l = list(split_uploaders('"A, B" <a@b.c>, D E <d@e.f>'))
13         self.assertEqual(expected, l)
14         l = list(split_uploaders('"A, B" <a@b.c> , D E <d@e.f>'))
15         self.assertEqual(expected, l)
16         l = list(split_uploaders('"A, B" <a@b.c>,D E <d@e.f>'))
17         self.assertEqual(expected, l)
18         l = list(split_uploaders('"A, B" <a@b.c>   ,D E <d@e.f>'))
19         self.assertEqual(expected, l)
20
21 if __name__ == '__main__':
22     unittest.main()