Updates to unit tests
[hermes] / package / test / integration / test_twitter.py
1 from org.maemo.hermes.engine.twitter.service import Service
2 from org.maemo.hermes.engine.names import canonical
3 from org.maemo.hermes.engine.twitter.api import TwitterApi
4 import unittest
5
6 class IntegrationTestTwitterService(unittest.TestCase):
7     """Tests that needs human interaction (such as for authorization)"""
8     
9     pass
10 #    def setUp(self):
11 #        self.api = TwitterApi()
12 #        self.testee = Service('twitter', self.api)
13 #    
14 #    
15 #    def test_main_flow(self):
16 #        self._exercise_service([])
17 #        
18 #        assert len(self.testee.get_unmatched_friends()) > 0
19 #        assert len(self.testee.get_contacts_with_match()) == 0
20 #        
21 #
22 #    def _exercise_service(self, contacts):
23 #        for contact in contacts:
24 #            self.testee.pre_process_contact(contact)
25 #        self.testee.process_friends()
26 #        for contact in contacts:
27 #            self.testee.process_contact(contact)
28     
29 if __name__ == '__main__':
30     unittest.main()