Beispiel #1
0
 def test_validate_location_username_with_spaces(self):
     """ Can't be sure this is a Twitter username """
     input = "botwiki dot org"
     output = botsheeter.validate_location(input)
     self.assertEqual(output, "botwiki dot org")
Beispiel #2
0
 def test_validate_location_at_username(self):
     input = "@botwikidotorg"
     output = botsheeter.validate_location(input)
     self.assertEqual(output, "https://twitter.com/botwikidotorg")
Beispiel #3
0
 def test_validate_location_text(self):
     """ Can't be sure this is a Twitter username """
     input = "Snapchat"
     output = botsheeter.validate_location(input)
     self.assertEqual(output, "Snapchat")
Beispiel #4
0
 def test_validate_location(self, x):
     output = botsheeter.validate_location(x)
     self.assertIsNotNone(output)
     self.assertIsInstance(output, unicode)