Esempio n. 1
0
    def test_compare_dictionaries(self):
        original = {"id": 1, "body_html": "Test-1"}

        updates = {"body_html": "Test-2", "headline": "a"}

        modified = compare_dictionaries(original, updates)
        self.assertEquals(2, len(modified))
        self.assertTrue("body_html" in modified)
        self.assertTrue("headline" in modified)
Esempio n. 2
0
    def test_compare_dictionaries(self):
        original = {"id": 1, "body_html": "Test-1"}

        updates = {
            "body_html": "Test-2",
            "headline": "a",
        }

        modified = compare_dictionaries(original, updates)
        self.assertEquals(2, len(modified))
        self.assertTrue("body_html" in modified)
        self.assertTrue("headline" in modified)
Esempio n. 3
0
    def test_compare_dictionaries(self):
        original = {'id': 1, 'body_html': 'Test-1'}

        updates = {
            'body_html': 'Test-2',
            'headline': 'a',
        }

        modified = compare_dictionaries(original, updates)
        self.assertEquals(2, len(modified))
        self.assertTrue('body_html' in modified)
        self.assertTrue('headline' in modified)
Esempio n. 4
0
    def test_compare_dictionaries(self):
        original = {
            'id': 1,
            'body_html': 'Test-1'
        }

        updates = {
            'body_html': 'Test-2',
            'headline': 'a',
        }

        modified = compare_dictionaries(original, updates)
        self.assertEquals(2, len(modified))
        self.assertTrue('body_html' in modified)
        self.assertTrue('headline' in modified)