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
6 class IntegrationTestTwitterService(unittest.TestCase):
7 """Tests that needs human interaction (such as for authorization)"""
11 # self.api = TwitterApi()
12 # self.testee = Service('twitter', self.api)
15 # def test_main_flow(self):
16 # self._exercise_service([])
18 # assert len(self.testee.get_unmatched_friends()) > 0
19 # assert len(self.testee.get_contacts_with_match()) == 0
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)
29 if __name__ == '__main__':