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)
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)
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)
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)