def test_to_file(self): from jicagile.config import Team fpath = os.path.join(self.tmp_dir, ".team.yml") self.assertFalse(os.path.isfile(fpath)) team = Team() team.add_member("TO", "Tjelvar", "Olsson") team.to_file(fpath) self.assertTrue(os.path.isfile(fpath)) from_file_team = Team.from_file(fpath) self.assertEqual(team, from_file_team)