Exemple #1
0
 def test_validate_creator_twitter_url_no_https(self):
     input = "twitter.com/botwikidotorg"
     output = botsheeter.validate_creator_twitter_url(input)
     self.assertEqual(output, "https://twitter.com/botwikidotorg")
Exemple #2
0
 def test_validate_creator_twitter_url_username_with_spaces(self):
     input = "botwiki dot org"
     output = botsheeter.validate_creator_twitter_url(input)
     self.assertEqual(output, "https://twitter.com/botwikidotorg")
Exemple #3
0
 def test_validate_creator_twitter_url(self, x):
     output = botsheeter.validate_creator_twitter_url(x)
     self.assertIsNotNone(output)
     self.assertIsInstance(output, unicode)