예제 #1
0
 def test_compare_not_equal(self):
     with self.assertRaises(Exception) as ex:
         compare_dicts(self.dict2, self.dict3)
     self.assertEqual("Dicts are not equal", str(ex.exception))
예제 #2
0
 def test_compare_not_equal(self, setup):
     with pytest.raises(Exception) as exepinfo:
         compare_dicts(self.dict2, self.dict3)
     assert "Dicts are not equal" in str(exepinfo.value)
예제 #3
0
 def test_compare_equal(self):
     result = compare_dicts(self.dict1, self.dict2)
     self.assertIsNone(result)
예제 #4
0
 def test_compare_equal(self, setup):
     result = compare_dicts(self.dict1, self.dict2)
     assert result is None