~super-friends/friends/13.10

« back to all changes in this revision

Viewing changes to friends/tests/test_facebook.py

  • Committer: Tarmac
  • Author(s): Robert Bruce Park
  • Date: 2013-07-29 22:21:38 UTC
  • mfrom: (228.1.1 fix-autopkgtest)
  • Revision ID: tarmac-20130729222138-wt7hn4cdt6evrpzk
Fix autopkgtest failures.

Approved by PS Jenkins bot, Robert Bruce Park.

Show diffs side-by-side

added added

removed removed

Lines of Context:
590
590
 
591
591
    @mock.patch('gi.repository.EBook.BookClient.connect_sync',
592
592
                return_value=EDSBookClientMock())
 
593
    @mock.patch('gi.repository.EDataServer.SourceRegistry.new_sync',
 
594
                return_value=EDSRegistry())
593
595
    def test_successful_previously_stored_contact(self, *mocks):
594
596
        result = self.protocol._previously_stored_contact('11111')
595
597
        self.assertEqual(result, True)
596
598
 
597
 
    def test_first_run_prepare_eds_connections(self):
 
599
    @mock.patch('gi.repository.EBook.BookClient.connect_sync',
 
600
                return_value=EDSBookClientMock())
 
601
    @mock.patch('gi.repository.EDataServer.SourceRegistry.new_sync',
 
602
                return_value=EDSRegistry())
 
603
    def test_first_run_prepare_eds_connections(self, *mocks):
598
604
        self.protocol._name = 'testsuite'
599
605
        self.assertIsNone(self.protocol._address_book_name)
600
606
        self.assertIsNone(self.protocol._eds_source_registry)