Example #1
0
 def test_get_service_name_google_plus(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="GooglePlus",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_service_name(), "Google+")
Example #2
0
 def test_get_service_name_twitter(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="Twitter",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_service_name(), "Twitter")
Example #3
0
 def test_get_service_name_youtube(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="YouTube",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_service_name(), "YouTube")
Example #4
0
 def test_get_service_name_facebook(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="Facebook",
         channel_id="CongressmanHalRogers",
     )
     self.assertEqual(channel.get_service_name(), "Facebook")
Example #5
0
 def test_get_url_twitter(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="Twitter",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_url(), "https://twitter.com/RepHalRogers")
Example #6
0
 def test_get_url_google_plus(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="GooglePlus",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_url(),
                      "https://plus.google.com/u/0/+RepHalRogers")
Example #7
0
 def test_get_url_youtube(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="YouTube",
         channel_id="RepHalRogers",
     )
     self.assertEqual(channel.get_url(),
                      "https://www.youtube.com/user/RepHalRogers")
Example #8
0
 def test_get_url_facebook(self):
     channel = SocialMediaChannel(
         official=self.official,
         channel_type="Facebook",
         channel_id="CongressmanHalRogers",
     )
     self.assertEqual(channel.get_url(),
                      "https://www.facebook.com/CongressmanHalRogers")