def test_files_changed_different_value(self): """ Given two dicts with the same keys but different values. Check that True is returned. """ d1 = dict(foo=123) d2 = dict(foo=456) result = files_changed(d1, d2) self.assert_(result)
def test_files_changed_same_value(self): """ Given two dicts with the same keys and values. Check that False is returned. """ d1 = dict(foo=123) d2 = dict(foo=123) result = files_changed(d1, d2) self.assert_(not result)
def test_files_changed_key_not_in_second(self): """ Given two dicts check if True is returned if a key is not in the second dict. """ d1 = dict(foo='bar') d2 = dict() result = files_changed(d1, d2) self.assert_(result)