def test_as_dict_from_dict(self):
     dd = self.pd.as_dict()
     new_pd = BasePhaseDiagram.from_dict(dd)
     new_dd = new_pd.as_dict()
     self.assertEqual(new_dd, dd)
 def setUp(self):
     self.entries = EntrySet.from_csv(str(module_dir /
                                          "pdentries_test.csv"))
     self.pd = BasePhaseDiagram.from_entries(self.entries)
     warnings.simplefilter("ignore")