예제 #1
0
    def test_can_be_converted_to_xml_with_no_owner(self):
        p = Project()

        for key, value in project_dict.items():
            setattr(p, key, value)
        p.no_owner = True

        assert p._to_xml() == target_no_owner_xml
예제 #2
0
    def test_can_be_converted_to_xml(self):
        p = Project()
        for key, value in project_dict.items():
            setattr(p, key, value)

        assert p._to_xml() == target_xml