def test_include_modifiers(self):
        """
        should include the modifiers value from the original query in
        subsequent queries
        """
        test = {"agentp": "platypus", "agentm": "monkey"}
        sites = Site.modifiers(test).includes("articles", "comments", "maintainer", "headline").all()

        for call in self.adapter.calls:
            self.assertEqual(call.modifiers_value(), test)
示例#2
0
    def test_include_modifiers(self):
        """
        should include the modifiers value from the original query in
        subsequent queries
        """
        test = {'agentp': 'platypus', 'agentm': 'monkey'}
        sites = Site.modifiers(test).includes('articles', 'comments',
                            'maintainer', 'headline').all()

        for call in self.adapter.calls:
            self.assertEqual(call.modifiers_value(), test)
    def test_include_modifiers(self):
        """
        should include the modifiers value from the original query in
        subsequent queries
        """
        test = {'agentp': 'platypus', 'agentm': 'monkey'}
        sites = Site.modifiers(test).includes('articles', 'comments',
                            'maintainer', 'headline').all()

        for call in self.adapter.calls:
            self.assertEqual(call.modifiers_value(), test)