Exemplo n.º 1
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(Follow.name, template['twitter']['actions'])
     self.assertIn('enabled', template['twitter']['actions'][Follow.name])
     self.assertIn('keywords', template['twitter']['actions'][Follow.name])
     self.assertIn('max_following', template['twitter']['actions'][Follow.name])
     self.assertIn('multiple', template['twitter']['actions'][Follow.name])
Exemplo n.º 2
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(RatingByRetweetsCount.name,
                   template['twitter']['search']['sort'])
     self.assertIn(
         'enabled',
         template['twitter']['search']['sort'][RatingByRetweetsCount.name])
Exemplo n.º 3
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(TagFriend.name, template['twitter']['actions'])
     self.assertIn('enabled', template['twitter']['actions'][TagFriend.name])
     self.assertIn('friends', template['twitter']['actions'][TagFriend.name])
     self.assertIn('tag_keywords', template['twitter']['actions'][TagFriend.name])
     self.assertIn('friend_keywords', template['twitter']['actions'][TagFriend.name])
     self.assertIn('number_keywords', template['twitter']['actions'][TagFriend.name])
Exemplo n.º 4
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(RatingByKeywords.name,
                   template['twitter']['search']['sort'])
     self.assertIn(
         'enabled',
         template['twitter']['search']['sort'][RatingByKeywords.name])
     self.assertIn(
         'keywords',
         template['twitter']['search']['sort'][RatingByKeywords.name])
Exemplo n.º 5
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(MailNotifier.name, template['notifiers'])
     self.assertIn('enabled', template['notifiers'][MailNotifier.name])
     self.assertIn('host', template['notifiers'][MailNotifier.name])
     self.assertIn('port', template['notifiers'][MailNotifier.name])
     self.assertIn('tls', template['notifiers'][MailNotifier.name])
     self.assertIn('username', template['notifiers'][MailNotifier.name])
     self.assertIn('password', template['notifiers'][MailNotifier.name])
     self.assertIn('recipient', template['notifiers'][MailNotifier.name])
Exemplo n.º 6
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(FilterMinRetweets.name,
                   template['twitter']['search']['filter'])
     self.assertIn(
         'enabled',
         template['twitter']['search']['filter'][FilterMinRetweets.name])
     self.assertIn(
         'number',
         template['twitter']['search']['filter'][FilterMinRetweets.name])
Exemplo n.º 7
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(FilterBlacklist.name,
                   template['twitter']['search']['filter'])
     self.assertIn(
         'enabled',
         template['twitter']['search']['filter'][FilterBlacklist.name])
     self.assertIn(
         'keywords',
         template['twitter']['search']['filter'][FilterBlacklist.name])
Exemplo n.º 8
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(Favorite.name, template['twitter']['actions'])
     self.assertIn('enabled', template['twitter']['actions'][Favorite.name])
     self.assertIn('keywords', template['twitter']['actions'][Favorite.name])
Exemplo n.º 9
0
 def test_config(self):
     template = Config.get_template()
     self.assertIn(PushbulletNotifier.name, template['notifiers'])
     self.assertIn('enabled',
                   template['notifiers'][PushbulletNotifier.name])
     self.assertIn('token', template['notifiers'][PushbulletNotifier.name])