def test_overwritingAnAttribute(self):
     xml = XmlMaker("book").addAttribute("genre", "fantasy").addAttribute("genre", "drama")
     xml.setAttribute("genre", "sci-fi")
     expected_xml = "<book genre=\"sci-fi\"></book>"
     self.assertEqual(xml.__str__(), expected_xml)