예제 #1
0
 def test_gwibber_helper_mock(self):
     gh = GwibberHelperMock()
     accounts = gh.accounts()
     self.assertEqual(len(accounts), 2)
     #print accounts
     # we can not test the real gwibber here, otherwise it will
     # post our test data to real services
     self.assertEqual(gh.send_message("test"), True)
예제 #2
0
 def test_gwibber_helper_mock(self):
     gh = GwibberHelperMock()
     accounts = gh.accounts()
     self.assertEqual(len(accounts), 2)
     #print accounts
     # we can not test the real gwibber here, otherwise it will
     # post our test data to real services
     self.assertEqual(gh.send_message ("test"), True)
예제 #3
0
 def test_gwibber_helper_mock(self):
     from softwarecenter.gwibber_helper import GwibberHelperMock
     os.environ["SOFTWARE_CENTER_GWIBBER_MOCK_USERS"] = "2"
     os.environ["SOFTWARE_CENTER_GWIBBER_MOCK_NO_FAIL"] = "1"
     gh = GwibberHelperMock()
     accounts = gh.accounts()
     self.assertEqual(len(accounts), 2)
     #print accounts
     # we can not test the real gwibber here, otherwise it will
     # post our test data to real services
     self.assertEqual(gh.send_message ("test"), True)
예제 #4
0
 def test_gwibber_helper_mock(self):
     from softwarecenter.gwibber_helper import GwibberHelperMock
     os.environ["SOFTWARE_CENTER_GWIBBER_MOCK_USERS"] = "2"
     os.environ["SOFTWARE_CENTER_GWIBBER_MOCK_NO_FAIL"] = "1"
     gh = GwibberHelperMock()
     accounts = gh.accounts()
     self.assertEqual(len(accounts), 2)
     #print accounts
     # we can not test the real gwibber here, otherwise it will
     # post our test data to real services
     self.assertEqual(gh.send_message("test"), True)