示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)