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")
def test_validate_location_at_username(self): input = "@botwikidotorg" output = botsheeter.validate_location(input) self.assertEqual(output, "https://twitter.com/botwikidotorg")
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")
def test_validate_location(self, x): output = botsheeter.validate_location(x) self.assertIsNotNone(output) self.assertIsInstance(output, unicode)